Light Create

ambient_r, ambient_g, ambient_b

Set red, green, blue contributions for the ambient light, from black (0.0, 0.0, 0.0) to white (1.0, 1.0, 1.0). When ambient parameters are not entered, the ambient component is set to (0.0, 0.0, 0.0). When ambient, diffuse and specular components are all missing, an error is shown. When no lights are present, ambient light is automatically set to (1.0, 1.0, 1.0).
Example: <light ... diffuse_r="0.5" diffuse_g="0.5" diffuse_b="0.5"/> (default) 
(defined in GAMGI_MESA_LIGHT_AMBIENT_R, GAMGI_MESA_LIGHT_AMBIENT_G 
and GAMGI_MESA_LIGHT_AMBIENT_B)
Allowed values: 0.0 - 1.0 (optional, coupled)

diffuse_r, diffuse_g, diffuse_b

Set red, green, blue contributions for the diffuse light, from black (0.0, 0.0, 0.0) to white (1.0, 1.0, 1.0). When diffuse parameters are not entered, the diffuse component is set to (0.0, 0.0, 0.0). When ambient, diffuse and specular components are all missing, an error is shown. When no lights are present, diffuse light is automatically set to (0.0, 0.0, 0.0).
Example: <light ... specular_r="0.4" specular_g="0.4" specular_b="0.4"/> (default)
(defined in GAMGI_MESA_LIGHT_DIFFUSE_R, GAMGI_MESA_LIGHT_DIFFUSE_G 
and GAMGI_MESA_LIGHT_DIFFUSE_B)
Allowed values: 0.0 - 1.0 (optional, coupled)

specular_r, specular_g, specular_b

Set red, green, blue contributions for the specular light, from black (0.0, 0.0, 0.0) to white (1.0, 1.0, 1.0). When specular parameters are not entered, the specular component is set to (0.0, 0.0, 0.0). When ambient, diffuse and specular components are all missing, an error is shown. When no lights are present, specular light is automatically set to (0.0, 0.0, 0.0).
Example: <light ... specular_r="0.3" specular_g="0.3" specular_b="0.3"/> (default) 
(defined in GAMGI_MESA_LIGHT_SPECULAR_R, GAMGI_MESA_LIGHT_SPECULAR_G 
and GAMGI_MESA_LIGHT_SPECULAR_B)
Allowed values: 0.0 - 1.0 (optional, coupled)
Home