b3dSetEntityBaseTexture

Sets entity base color texture (diffuse/albedo map, multiplied with baseColorFactor). Takes entityHandle (mesh/terrain entity handle), textureHandle (texture handle from b3dLoadTexture3D). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

entityHandle Int
textureHandle Int

Returns

Void

Quick Summary

Sets entity base color texture (diffuse/albedo map, multiplied with baseColorFactor). Takes entityHandle (mesh/terrain entity handle), textureHandle (texture handle from b3dLoadTexture3D). Returns nothing.

Technical Exegesis...

Sets entity base color texture (diffuse/albedo map, multiplied with baseColorFactor). Takes entityHandle (mesh/terrain entity handle), textureHandle (texture handle from b3dLoadTexture3D). Returns nothing. Updates material.baseColorTextureIndex to textureHandle, texture sampled in shader and multiplied with baseColorFactor (finalColor = texture * factor). Mesh and terrain entities only.

This function sets base texture.

Example

Example.bam
; No example implemented yet