Sun
Function Name | Parameter | Return | Explain |
getDirection | None | vec | Get sun direction (from sun to ground) |
setDirection | vec dir, dirNormalMap | None | Set sun direction Parameters dirNormalMap: sun dir for normal map. If your normal map use left-handed coordinate system (x-axis points left, y-axis points up, z-axis points out), this parameter can absent. |
getColor | None | color | Get sun color |
setColor | color | None | Set sun color |
getIntensity | None | number | Get sun intensity |
setIntensity | number | None | Set sun intensity |
Lib Function | Parameter | Return | Explain |
new | Material List | Sun |