{"id":"graphics.render3d--SetGraphics3DTextureMaterialV1","name":"SetGraphics3DTextureMaterialV1","owner":"yeho","package":"graphics.render3d","kind":"function","signature":"external SetGraphics3DTextureMaterialV1(int texture, float scale) returns bool","description":"The texture is projected from object-space position using the dominant surface axis, so existing P3N3 meshes need no new vertex format. Scale must be finite and in 0.125..64. Solid lit color remains the exact default.","context":"Use bounded hardware 3D resources, meshes, cameras, lights, and draw commands.","parameters":[{"name":"texture","type":"int","description":"Supply texture as int."},{"name":"scale","type":"float","description":"Supply scale as float."}],"returns":"bool","members":[],"tags":["cpu","function","graphics","graphics.render3d","render3d","source-example","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/graphics/render3d/render3d.yh","line":104,"sha256":"e98990c02e455ccc99829eefd52831a8b724534b82b7be2ffd8d0263d52b834c"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use SetGraphics3DTextureMaterialV1","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using graphics.render3d\n\n// Use bounded hardware 3D resources, meshes, cameras, lights, and draw commands.\nint texture = 1\nfloat scale = 1.0\nbool result = SetGraphics3DTextureMaterialV1(texture, scale)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_render3d__setgraphics3dtexturematerialv1\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.render3d\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/render3d\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"d9f5cbfeae31e2a64a0b9f8b7a916638de56fc73f999367fd8fbd2aa9b4740df","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=graphics.render3d--SetGraphics3DTextureMaterialV1","json":"https://demonhunterlabs.com/reference/items/graphics.render3d--SetGraphics3DTextureMaterialV1.json","markdown":"https://demonhunterlabs.com/reference/text/graphics.render3d--SetGraphics3DTextureMaterialV1.md"}
