mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 11:22:24 +02:00
Remove unused light properties from entity properties window
This commit is contained in:
parent
c2e559342a
commit
c3a7257439
1 changed files with 4 additions and 66 deletions
|
@ -132,17 +132,7 @@
|
||||||
var elLightDiffuseGreen = document.getElementById("property-light-diffuse-green");
|
var elLightDiffuseGreen = document.getElementById("property-light-diffuse-green");
|
||||||
var elLightDiffuseBlue = document.getElementById("property-light-diffuse-blue");
|
var elLightDiffuseBlue = document.getElementById("property-light-diffuse-blue");
|
||||||
|
|
||||||
var elLightAmbientRed = document.getElementById("property-light-ambient-red");
|
|
||||||
var elLightAmbientGreen = document.getElementById("property-light-ambient-green");
|
|
||||||
var elLightAmbientBlue = document.getElementById("property-light-ambient-blue");
|
|
||||||
|
|
||||||
var elLightSpecularRed = document.getElementById("property-light-specular-red");
|
|
||||||
var elLightSpecularGreen = document.getElementById("property-light-specular-green");
|
|
||||||
var elLightSpecularBlue = document.getElementById("property-light-specular-blue");
|
|
||||||
|
|
||||||
var elLightConstantAttenuation = document.getElementById("property-light-constant-attenuation");
|
var elLightConstantAttenuation = document.getElementById("property-light-constant-attenuation");
|
||||||
var elLightLinearAttenuation = document.getElementById("property-light-linear-attenuation");
|
|
||||||
var elLightQuadraticAttenuation = document.getElementById("property-light-quadratic-attenuation");
|
|
||||||
var elLightExponent = document.getElementById("property-light-exponent");
|
var elLightExponent = document.getElementById("property-light-exponent");
|
||||||
var elLightCutoff = document.getElementById("property-light-cutoff");
|
var elLightCutoff = document.getElementById("property-light-cutoff");
|
||||||
|
|
||||||
|
@ -294,17 +284,7 @@
|
||||||
elLightDiffuseGreen.value = properties.diffuseColor.green;
|
elLightDiffuseGreen.value = properties.diffuseColor.green;
|
||||||
elLightDiffuseBlue.value = properties.diffuseColor.blue;
|
elLightDiffuseBlue.value = properties.diffuseColor.blue;
|
||||||
|
|
||||||
elLightAmbientRed.value = properties.ambientColor.red;
|
|
||||||
elLightAmbientGreen.value = properties.ambientColor.green;
|
|
||||||
elLightAmbientBlue.value = properties.ambientColor.blue;
|
|
||||||
|
|
||||||
elLightSpecularRed.value = properties.specularColor.red;
|
|
||||||
elLightSpecularGreen.value = properties.specularColor.green;
|
|
||||||
elLightSpecularBlue.value = properties.specularColor.blue;
|
|
||||||
|
|
||||||
elLightConstantAttenuation.value = properties.constantAttenuation;
|
elLightConstantAttenuation.value = properties.constantAttenuation;
|
||||||
elLightLinearAttenuation.value = properties.linearAttenuation;
|
|
||||||
elLightQuadraticAttenuation.value = properties.quadraticAttenuation;
|
|
||||||
elLightExponent.value = properties.exponent;
|
elLightExponent.value = properties.exponent;
|
||||||
elLightCutoff.value = properties.cutoff;
|
elLightCutoff.value = properties.cutoff;
|
||||||
}
|
}
|
||||||
|
@ -381,21 +361,7 @@
|
||||||
elLightDiffuseGreen.addEventListener('change', lightDiffuseChangeFunction);
|
elLightDiffuseGreen.addEventListener('change', lightDiffuseChangeFunction);
|
||||||
elLightDiffuseBlue.addEventListener('change', lightDiffuseChangeFunction);
|
elLightDiffuseBlue.addEventListener('change', lightDiffuseChangeFunction);
|
||||||
|
|
||||||
var lightAmbientChangeFunction = createEmitColorPropertyUpdateFunction(
|
|
||||||
'ambientColor', elLightAmbientRed, elLightAmbientGreen, elLightAmbientBlue);
|
|
||||||
elLightAmbientRed.addEventListener('change', lightAmbientChangeFunction);
|
|
||||||
elLightAmbientGreen.addEventListener('change', lightAmbientChangeFunction);
|
|
||||||
elLightAmbientBlue.addEventListener('change', lightAmbientChangeFunction);
|
|
||||||
|
|
||||||
var lightSpecularChangeFunction = createEmitColorPropertyUpdateFunction(
|
|
||||||
'specularColor', elLightSpecularRed, elLightSpecularGreen, elLightSpecularBlue);
|
|
||||||
elLightSpecularRed.addEventListener('change', lightSpecularChangeFunction);
|
|
||||||
elLightSpecularGreen.addEventListener('change', lightSpecularChangeFunction);
|
|
||||||
elLightSpecularBlue.addEventListener('change', lightSpecularChangeFunction);
|
|
||||||
|
|
||||||
elLightConstantAttenuation.addEventListener('change', createEmitNumberPropertyUpdateFunction('constantAttenuation'));
|
elLightConstantAttenuation.addEventListener('change', createEmitNumberPropertyUpdateFunction('constantAttenuation'));
|
||||||
elLightLinearAttenuation.addEventListener('change', createEmitNumberPropertyUpdateFunction('linearAttenuation'));
|
|
||||||
elLightQuadraticAttenuation.addEventListener('change', createEmitNumberPropertyUpdateFunction('quadraticAttenuation'));
|
|
||||||
elLightExponent.addEventListener('change', createEmitNumberPropertyUpdateFunction('exponent'));
|
elLightExponent.addEventListener('change', createEmitNumberPropertyUpdateFunction('exponent'));
|
||||||
elLightCutoff.addEventListener('change', createEmitNumberPropertyUpdateFunction('cutoff'));
|
elLightCutoff.addEventListener('change', createEmitNumberPropertyUpdateFunction('cutoff'));
|
||||||
|
|
||||||
|
@ -715,7 +681,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="light-section property">
|
<div class="light-section property">
|
||||||
<div class="label">Diffuse</div>
|
<div class="label">Color</div>
|
||||||
<div class="value">
|
<div class="value">
|
||||||
<div class="input-area">R <input class="coord" type='number' id="property-light-diffuse-red"></input></div>
|
<div class="input-area">R <input class="coord" type='number' id="property-light-diffuse-red"></input></div>
|
||||||
<div class="input-area">G <input class="coord" type='number' id="property-light-diffuse-green"></input></div>
|
<div class="input-area">G <input class="coord" type='number' id="property-light-diffuse-green"></input></div>
|
||||||
|
@ -723,47 +689,19 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="light-section property">
|
<div class="light-section property">
|
||||||
<div class="label">Ambient</div>
|
<div class="label">Intensity</div>
|
||||||
<div class="value">
|
|
||||||
<div class="input-area">R <input class="coord" type='number' id="property-light-ambient-red"></input></div>
|
|
||||||
<div class="input-area">G <input class="coord" type='number' id="property-light-ambient-green"></input></div>
|
|
||||||
<div class="input-area">B <input class="coord" type='number' id="property-light-ambient-blue"></input></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="light-section property">
|
|
||||||
<div class="label">Specular</div>
|
|
||||||
<div class="value">
|
|
||||||
<div class="input-area">R <input class="coord" type='number' id="property-light-specular-red"></input></div>
|
|
||||||
<div class="input-area">G <input class="coord" type='number' id="property-light-specular-green"></input></div>
|
|
||||||
<div class="input-area">B <input class="coord" type='number' id="property-light-specular-blue"></input></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="light-section property">
|
|
||||||
<div class="label">Constant Attenuation</div>
|
|
||||||
<div class="value">
|
<div class="value">
|
||||||
<input class="coord" type='number' id="property-light-constant-attenuation"></input>
|
<input class="coord" type='number' id="property-light-constant-attenuation"></input>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="light-section property">
|
<div class="light-section property">
|
||||||
<div class="label">Linear Attenuation</div>
|
<div class="label">Spot Light Exponent</div>
|
||||||
<div class="value">
|
|
||||||
<input class="coord" type='number' id="property-light-linear-attenuation"></input>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="light-section property">
|
|
||||||
<div class="label">Quadratic Attenuation</div>
|
|
||||||
<div class="value">
|
|
||||||
<input class="coord" type='number' id="property-light-quadratic-attenuation"></input>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="light-section property">
|
|
||||||
<div class="label">Exponent</div>
|
|
||||||
<div class="value">
|
<div class="value">
|
||||||
<input class="coord" type='number' id="property-light-exponent"></input>
|
<input class="coord" type='number' id="property-light-exponent"></input>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="light-section property">
|
<div class="light-section property">
|
||||||
<div class="label">Cutoff (degrees)</div>
|
<div class="label">Spot Light Cutoff (degrees)</div>
|
||||||
<div class="value">
|
<div class="value">
|
||||||
<input class="coord" type='number' id="property-light-cutoff"></input>
|
<input class="coord" type='number' id="property-light-cutoff"></input>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue