Skip to content

Commit 382f00b

Browse files
committed
Add a property for the cone length
1 parent a9443cb commit 382f00b

1 file changed

Lines changed: 119 additions & 0 deletions

File tree

extensions/reviewed/SpotLight3D.json

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,13 @@
401401
" }",
402402
"",
403403
" /**",
404+
" * @param value {number}",
405+
" */",
406+
" setConeLength(value) {",
407+
" this.spotLight.distance = value;",
408+
" }",
409+
"",
410+
" /**",
404411
" * @param coneAngle {number}",
405412
" */",
406413
" setConeAngle(coneAngle) {",
@@ -853,6 +860,17 @@
853860
""
854861
]
855862
},
863+
{
864+
"type": {
865+
"value": "SpotLight3D::SpotLight3D::SetConeLength"
866+
},
867+
"parameters": [
868+
"Object",
869+
"=",
870+
"ConeLength",
871+
""
872+
]
873+
},
856874
{
857875
"type": {
858876
"value": "SpotLight3D::SpotLight3D::SetConeAngle"
@@ -1945,6 +1963,88 @@
19451963
}
19461964
],
19471965
"objectGroups": []
1966+
},
1967+
{
1968+
"description": "the cone length of the light. 0 means no limit.",
1969+
"fullName": "Cone length",
1970+
"functionType": "ExpressionAndCondition",
1971+
"name": "ConeLength",
1972+
"sentence": "the cone length",
1973+
"events": [
1974+
{
1975+
"type": "BuiltinCommonInstructions::Standard",
1976+
"conditions": [],
1977+
"actions": [
1978+
{
1979+
"type": {
1980+
"value": "SetReturnNumber"
1981+
},
1982+
"parameters": [
1983+
"ConeLength"
1984+
]
1985+
}
1986+
]
1987+
}
1988+
],
1989+
"expressionType": {
1990+
"type": "expression"
1991+
},
1992+
"parameters": [
1993+
{
1994+
"description": "Object",
1995+
"name": "Object",
1996+
"supplementaryInformation": "SpotLight3D::SpotLight3D",
1997+
"type": "object"
1998+
}
1999+
],
2000+
"objectGroups": []
2001+
},
2002+
{
2003+
"fullName": "",
2004+
"functionType": "ActionWithOperator",
2005+
"getterName": "ConeLength",
2006+
"name": "SetConeLength",
2007+
"sentence": "",
2008+
"events": [
2009+
{
2010+
"type": "BuiltinCommonInstructions::Standard",
2011+
"conditions": [],
2012+
"actions": [
2013+
{
2014+
"type": {
2015+
"value": "SetNumberVariable"
2016+
},
2017+
"parameters": [
2018+
"ConeLength",
2019+
"=",
2020+
"Value"
2021+
]
2022+
}
2023+
]
2024+
},
2025+
{
2026+
"type": "BuiltinCommonInstructions::JsCode",
2027+
"inlineCode": [
2028+
"const object = objects[0];\r",
2029+
"const value = eventsFunctionContext.getArgument(\"Value\");\r",
2030+
"\r",
2031+
"object.__spotLightAdapter.setConeLength(value);\r",
2032+
""
2033+
],
2034+
"parameterObjects": "Object",
2035+
"useStrict": true,
2036+
"eventsSheetExpanded": false
2037+
}
2038+
],
2039+
"parameters": [
2040+
{
2041+
"description": "Object",
2042+
"name": "Object",
2043+
"supplementaryInformation": "SpotLight3D::SpotLight3D",
2044+
"type": "object"
2045+
}
2046+
],
2047+
"objectGroups": []
19482048
}
19492049
],
19502050
"eventsFunctionsFolderStructure": {
@@ -1997,6 +2097,12 @@
19972097
{
19982098
"functionName": "SetDecay"
19992099
},
2100+
{
2101+
"functionName": "ConeLength"
2102+
},
2103+
{
2104+
"functionName": "SetConeLength"
2105+
},
20002106
{
20012107
"functionName": "ConeAngle"
20022108
},
@@ -2134,6 +2240,16 @@
21342240
"group": "Shadow",
21352241
"advanced": true,
21362242
"name": "ShadowCameraFarPlane"
2243+
},
2244+
{
2245+
"value": "0",
2246+
"type": "Number",
2247+
"unit": "Pixel",
2248+
"label": "Cone length",
2249+
"description": "0 means no limit.",
2250+
"group": "Cone",
2251+
"advanced": true,
2252+
"name": "ConeLength"
21372253
}
21382254
],
21392255
"propertiesFolderStructure": {
@@ -2154,6 +2270,9 @@
21542270
{
21552271
"propertyName": "ConeAngle"
21562272
},
2273+
{
2274+
"propertyName": "ConeLength"
2275+
},
21572276
{
21582277
"propertyName": "Smoothing"
21592278
}

0 commit comments

Comments
 (0)