mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 11:42:55 +02:00
tweaks to edits for lights
This commit is contained in:
parent
8570088f9d
commit
c3cd733c2f
2 changed files with 16 additions and 1 deletions
|
@ -167,6 +167,16 @@ EntityPropertyDialogBox = (function () {
|
||||||
index++;
|
index++;
|
||||||
array.push({ label: "Specular Blue:", value: properties.specularColor.blue });
|
array.push({ label: "Specular Blue:", value: properties.specularColor.blue });
|
||||||
index++;
|
index++;
|
||||||
|
array.push({ label: "Constant Attenuation:", value: properties.constantAttenuation });
|
||||||
|
index++;
|
||||||
|
array.push({ label: "Linear Attenuation:", value: properties.linearAttenuation });
|
||||||
|
index++;
|
||||||
|
array.push({ label: "Quadratic Attenuation:", value: properties.quadraticAttenuation });
|
||||||
|
index++;
|
||||||
|
array.push({ label: "Exponent:", value: properties.exponent });
|
||||||
|
index++;
|
||||||
|
array.push({ label: "Cutoff (in degrees):", value: properties.cutoff });
|
||||||
|
index++;
|
||||||
}
|
}
|
||||||
array.push({ button: "Cancel" });
|
array.push({ button: "Cancel" });
|
||||||
index++;
|
index++;
|
||||||
|
@ -280,6 +290,11 @@ EntityPropertyDialogBox = (function () {
|
||||||
properties.specularColor.red = array[index++].value;
|
properties.specularColor.red = array[index++].value;
|
||||||
properties.specularColor.green = array[index++].value;
|
properties.specularColor.green = array[index++].value;
|
||||||
properties.specularColor.blue = array[index++].value;
|
properties.specularColor.blue = array[index++].value;
|
||||||
|
properties.constantAttenuation = array[index++].value;
|
||||||
|
properties.linearAttenuation = array[index++].value;
|
||||||
|
properties.quadraticAttenuation = array[index++].value;
|
||||||
|
properties.exponent = array[index++].value;
|
||||||
|
properties.cutoff = array[index++].value;
|
||||||
}
|
}
|
||||||
|
|
||||||
Entities.editEntity(editModelID, properties);
|
Entities.editEntity(editModelID, properties);
|
||||||
|
|
|
@ -159,7 +159,7 @@ var toolBar = (function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
newLightButton = toolBar.addTool({
|
newLightButton = toolBar.addTool({
|
||||||
imageURL: toolIconUrl + "add-fire.svg",
|
imageURL: toolIconUrl + "light.svg",
|
||||||
subImage: { x: 0, y: Tool.IMAGE_WIDTH, width: Tool.IMAGE_WIDTH, height: Tool.IMAGE_HEIGHT },
|
subImage: { x: 0, y: Tool.IMAGE_WIDTH, width: Tool.IMAGE_WIDTH, height: Tool.IMAGE_HEIGHT },
|
||||||
width: toolWidth,
|
width: toolWidth,
|
||||||
height: toolHeight,
|
height: toolHeight,
|
||||||
|
|
Loading…
Reference in a new issue