b3dSetSurfaceRegionSize

Sets texture atlas region size for surface baking (must be power-of-2, 16-2048). Takes mesh (surface-based mesh entity), surface (surface handle, 0-based), size (atlas region dimension in pixels, integer). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

mesh Int
surface Int
size Int

Returns

Void

Quick Summary

Sets texture atlas region size for surface baking (must be power-of-2, 16-2048). Takes mesh (surface-based mesh entity), surface (surface handle, 0-based), size (atlas region dimension in pixels, integer). Returns nothing.

Technical Exegesis...

Sets texture atlas region size for surface baking (must be power-of-2, 16-2048). Takes mesh (surface-based mesh entity), surface (surface handle, 0-based), size (atlas region dimension in pixels, integer). Returns nothing. Validates mesh exists, type is ENTITY_MESH, surface-based, and surface index valid. Validates size is power-of-2 (16, 32, 64, 128, 256, 512, 1024, 2048). Sets surface->atlasRegionSize=size. Silently returns on validation errors.

Example

Example.bam
; No example implemented yet