graphics.render3d · function ·
SetGraphics3DAlphaTestedTextureMaterialV1
Alpha testing discards texels whose authored alpha is strictly below the finite 0..1 cutoff in both the lit color draw and an active directional-sun shadow caster draw. This is a cutout contract, not translucent blending.
Use bounded hardware 3D resources, meshes, cameras, lights, and draw commands.
external SetGraphics3DAlphaTestedTextureMaterialV1(int texture, float scale, float cutoff) returns boolStatus: source-declared
Parameters
int texture- Supply texture as int.
float scale- Supply scale as float.
float cutoff- Supply cutoff as float.
Use SetGraphics3DAlphaTestedTextureMaterialV1
A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.
cpu · source-example · type checked
using graphics.render3d
// Use bounded hardware 3D resources, meshes, cameras, lights, and draw commands.
int texture = 1
float scale = 1.0
float cutoff = 1.0
bool result = SetGraphics3DAlphaTestedTextureMaterialV1(texture, scale, cutoff)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.graphics_render3d__setgraphics3dalphatestedtexturematerialv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
[[dependencies]]
package = "graphics.render3d"
version = "0.1.0"
path = "../../../yeho/packages/graphics/render3d"
Notes and source
Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.
yeho/packages/graphics/render3d/render3d.yh:112