Add intensity and range parameters to lights.

PiperOrigin-RevId: 758603199
Change-Id: I74e88bdfeedd9224e84d953f237d68eca79e6cb7
This commit is contained in:
Google DeepMind
2025-05-14 03:27:06 -07:00
committed by Copybara-Service
parent a6c3a287d6
commit fa95fe0c59
15 changed files with 160 additions and 52 deletions
+2 -1
View File
@@ -203,6 +203,8 @@ void mjs_defaultLight(mjsLight* light) {
// intrinsics
light->castshadow = 1;
light->bulbradius = 0.02;
light->intensity = 1000.0;
light->range = 10.0;
light->active = 1;
light->attenuation[0] = 1;
light->cutoff = 45;
@@ -404,4 +406,3 @@ void mjs_defaultKey(mjsKey* key) {
void mjs_defaultPlugin(mjsPlugin* plugin) {
memset(plugin, 0, sizeof(mjsPlugin));
}