DirectionalLight

From Crumbled World Wiki
Revision as of 12:58, 5 July 2025 by Anders (talk | contribs) (Created page with "{{:DirectionalLightExampleCode}} ==Inheritance== SceneNode ==Static functions== {| class="wikitable" !|return !|function !|description |- |DirectionalLight |new(Vec3 direction, Vec3 color) |Create a new Instance of the the DirectionalLight |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |Vec3 |getColor() |Get the color of the light. |-...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DirectionalLightExampleCode

Inheritance

SceneNode

Static functions

return function description
DirectionalLight new(Vec3 direction, Vec3 color) Create a new Instance of the the DirectionalLight

Functions

return function description
Vec3 getColor() Get the color of the light.
Vec3 getDirection() Get the direction of the light.
setColor(Vec3 color) Set the color of the light.
setDirection(Vec3 direction) Set the direction of the light.