|
6 | 6 |
|
7 | 7 | @include "lights_base.fgd" |
8 | 8 |
|
9 | | -@PointClass light() base(light_base, light_base_legacy_params, light_base_attenuation_params, CanBeClientOnly) leansphere(lightsourceradius,255,255,255) sphere(range,255,255,0) |
10 | | - iconsprite |
11 | | - { |
12 | | - image = "materials/editor/light_omni.vmat" |
13 | | - tintKey = "color" |
14 | | - } |
15 | | - metadata |
16 | | - { |
17 | | - entity_tool_name = "Point Light" |
18 | | - entity_tool_tip = "Omni directional point light source" |
19 | | - entity_tool_group = "Lighting" |
20 | | - } |
21 | | -= light_omni : "A point light source." |
22 | | -[ |
23 | | - castshadows(choices) [ group = "Shadows" ] : "Cast Shadows" : "0" : "Whether this light casts shadow" = |
24 | | - [ |
25 | | - "0" : "No" |
26 | | - "1" : "Yes" |
27 | | - "2" : "Baked Only" |
28 | | - ] |
29 | | -] |
30 | | - |
31 | | - |
32 | | -@PointClass light() base(light_base, light_base_legacy_params, light_base_attenuation_params, CanBeClientOnly) editormodel( "models/editor/spot", lightModeTint, "124 255 157", "255 64 64" ) leansphere(lightsourceradius,255,255,255) lightcone() |
33 | | - iconsprite |
34 | | - { |
35 | | - image = "materials/editor/light_spot_icon.vmat" |
36 | | - tintKey = "color" |
37 | | - } |
38 | | - metadata |
39 | | - { |
40 | | - entity_tool_name = "Spot Light" |
41 | | - entity_tool_tip = "Spot light source" |
42 | | - entity_tool_group = "Lighting" |
43 | | - } |
44 | | -= light_spot : "A spot light source." |
45 | | -[ |
46 | | - lightcookie(resource:vtex) : "Light Cookie" : "" |
47 | | - |
48 | | - falloff(float) : "Falloff" : "1" : "angular falloff exponent for spot lights" |
49 | | - innerconeangle(float) { min="1" max="89" } : "Inner Cone Angle" : "45" : "inner cone angle. no angular falloff within this cone" |
50 | | - outerconeangle(float) { min="1" max="89" } : "Outer Cone Angle" : "60" : "outer cone angle" |
51 | | - |
52 | | - shadowfademindist(float) : "Shadow Start Fade Dist" : -250 : "Distance at which the shadow starts to fade (<0 = use fademaxdist)." |
53 | | - shadowfademaxdist(float) : "Shadow End Fade Dist" : 1000 : "Maximum distance at which the shadow is visible (0 = don't fade out)." |
54 | | - |
55 | | - shadowtexturewidth(integer) [ group = "Shadows" ] : "Shadow Texture Width" : 0 : "0 = use default texture resolution" |
56 | | - shadowtextureheight(integer) [ group = "Shadows" ] : "Shadow Texture Height" : 0 : "0 = use default texture resolution" |
57 | | -] |
58 | | - |
59 | | -@PointClass light() base(light_base, light_base_legacy_params, CanBeClientOnly) editormodel( "models/editor/spot", lightModeTint, "0 255 192", "255 64 64" ) lightortho() = light_ortho : "An orthographic spot light source." |
60 | | -[ |
61 | | - lightcookie(resource:vtex) : "Light Cookie" : "" |
62 | | - |
63 | | - ortholightwidth(float) { min="1" } : "Width" : "512.0" : "Ortho light rectangle width" |
64 | | - ortholightheight(float) { min="1" } : "Height" : "512.0" : "Ortho light rectangle height" |
65 | | - range(float) { min="0" } : "Range" : "2048.0" : "Distance range for light. 0=infinite" |
66 | | - angulardiameter(float) : "Sun Spread Angle" : "1.0" : "The angular extent of the sun for casting soft shadows. Higher numbers are more diffuse. 1 is a good starting value." |
67 | | - shadowtexturewidth(integer) [ group = "Shadows" ] : "Shadow Texture Width" : 0 : "0 = use default texture resolution" |
68 | | -] |
69 | | - |
70 | 9 | @BaseClass = IndoorOutdoorLevel |
71 | 10 | [ |
72 | 11 | indoor_outdoor_level(choices) : "Priority" : "0" : "If multiple volumes contain an object, the highest priority volume takes precedence." = |
|
87 | 26 |
|
88 | 27 | @BaseClass tags( Lighting ) = BaseLightProbeVolume |
89 | 28 | [ |
90 | | - lightprobetexture(resource:texture) : "Light Probe Texture" : "" : "Name of the light probe texture" |
91 | | - box_mins(vector) : "Box Mins" : "-72 -72 -72" |
92 | | - box_maxs(vector) : "Box Maxs" : "72 72 72" |
93 | | - voxel_size(choices) : "Voxel Size" : "48.0" : "" = |
| 29 | + lightprobetexture(resource:texture) [ group = "Lightprobes" ] : "Light Probe Texture" : "" : "Name of the light probe texture" |
| 30 | + box_mins(vector) [ group = "Bounds" ] : "Box Mins" : "-72 -72 -72" |
| 31 | + box_maxs(vector) [ group = "Bounds" ] : "Box Maxs" : "72 72 72" |
| 32 | + voxel_size(choices) [ group = "Lightprobes" ] : "Voxel Size" : "48.0" : "" = |
94 | 33 | [ |
95 | 34 | "12.0" : "Very High Resolution" |
96 | 35 | "24.0" : "High Resolution" |
97 | 36 | "48.0" : "Medium Resolution" |
98 | 37 | "108.0" : "Low Resolution" |
99 | 38 | ] |
100 | | - flood_fill(boolean) : "Ignore Unreachable Space" : 1 |
101 | | - voxelize(boolean) : "Ignore Voxelized Solid Space" : 1 |
102 | | - light_probe_volume_from_cubemap(boolean) : "Calculate Diffuse Lighting Using Cubemap" : 0 |
103 | | - lightgroup(string) : "Light Group" : "" : "Semicolon-delimited list of light groups to affect" |
104 | | - moveable(boolean) : "Moveable" : "0" : "Can be moved, parented, enabled, or disabled at runtime." |
105 | | - storage(choices) : "Storage" : "-1" : "" = |
| 39 | + flood_fill(boolean) [ group = "Lightprobes" ] : "Ignore Unreachable Space" : 1 |
| 40 | + voxelize(boolean) [ group = "Lightprobes" ] : "Ignore Voxelized Solid Space" : 1 |
| 41 | + light_probe_volume_from_cubemap(boolean) [ group = "Lightprobes" ] : "Calculate Diffuse Lighting Using Cubemap" : 0 |
| 42 | + moveable(boolean) [ group = "Lightprobes" ] : "Moveable" : "0" : "Can be moved, parented, enabled, or disabled at runtime." |
| 43 | + storage(choices) [ group = "Lightprobes" ] : "Storage" : "-1" : "" = |
106 | 44 | [ |
107 | 45 | "-1" : "Default" |
108 | 46 | "0" : "AmbientCube RGBM8888 Uncompressed" |
|
112 | 50 |
|
113 | 51 | @BaseClass tags( Lighting ) = BaseCubemap |
114 | 52 | [ |
115 | | - cubemaptexture(resource:texture) : "Cubemap Texture" : "" : "Name of the cubemap texture" |
116 | | - bakenearz(float) : "Bake Near Z" : "2.0" : "Near clip plane used for the camera when baking the cube map" |
117 | | - bakefarz(float) : "Bake Far Z" : "4096.0" : "Far clip plane used for the camera when baking the cube map" |
118 | | - lightgroup(string) : "Light Group" : "" : "Semicolon-delimited list of light groups to affect" |
119 | | - moveable(boolean) : "Moveable" : "0" : "Can be moved, parented, enabled, or disabled at runtime." |
| 53 | + cubemaptexture(resource:texture) [ group = "Cubemap" ] : "Cubemap Texture" : "" : "Name of the cubemap texture" |
| 54 | + bakenearz(float) [ group = "Cubemap" ] : "Bake Near Z" : "2.0" : "Near clip plane used for the camera when baking the cube map" |
| 55 | + bakefarz(float) [ group = "Cubemap" ] : "Bake Far Z" : "4096.0" : "Far clip plane used for the camera when baking the cube map" |
| 56 | + moveable(boolean) [ group = "Cubemap" ] : "Moveable" : "0" : "Can be moved, parented, enabled, or disabled at runtime." |
120 | 57 | ] |
121 | 58 |
|
122 | 59 | @PointClass |
|
128 | 65 | box_min = "box_mins" |
129 | 66 | box_max = "box_maxs" |
130 | 67 | is_light_probe_volume = true |
| 68 | + toggle_faces_with_selection_overlay = true |
131 | 69 | } |
132 | 70 | bakeresource( lightprobetexture, vtex, env_light_probe_volume, "ToolObjects/LightProbeVolume" ) |
133 | 71 | = env_light_probe_volume : "A grid of precomputed light probes." |
|
149 | 87 | [ |
150 | 88 | influenceradius(float) { min=12 } : "Influence Radius" : "256.0" : "The radius of influence for this cubemap" |
151 | 89 |
|
152 | | - // Subclasses in mods which want to support this feature can add this property. |
153 | | - // The name cannot be changed, as it is used by the leansphere helper. |
154 | | - //edge_fade_dist(float) : "Edge Fade" : "0.0" |
| 90 | + edge_fade_dist(float) : "Edge Fade" : "0.0" |
155 | 91 | ] |
156 | 92 |
|
157 | 93 | @PointClass |
|
163 | 99 | box_min = "box_mins" |
164 | 100 | box_max = "box_maxs" |
165 | 101 | auto_center = false |
166 | | - // will not do anything until this property is added |
167 | 102 | edge_fades = "edge_fade_dists" |
168 | | - // will not do anything until this property is added |
169 | 103 | single_edge_fade = "edge_fade_dist" |
| 104 | + toggle_faces_with_selection_overlay = true |
170 | 105 | } |
171 | 106 | bakeresource( cubemaptexture, vtex, env_cubemap, "ToolObjects/CubeMap" ) |
172 | 107 | = env_cubemap_box : "An env_cubemap with box projection." |
173 | 108 | [ |
174 | 109 | box_mins(vector) : "Box Projection Mins" : "-72 -72 -72" |
175 | 110 | box_maxs(vector) : "Box Projection Maxs" : "72 72 72" |
176 | | - // Subclasses in mods which want to support this feature can add this property. |
177 | | - // The name cannot be changed, as it is used by the box_oriented helper. |
178 | | - //edge_fade_dists(vector) : "Edge Fade Dist" : "0 0 0" |
| 111 | + |
| 112 | + edge_fade_dists(vector) : "Edge Fade Dist" : "0 0 0" |
179 | 113 | ] |
180 | 114 |
|
181 | 115 | @PointClass |
|
188 | 122 | box_max = "box_maxs" |
189 | 123 | auto_center = false |
190 | 124 | is_light_probe_volume = true |
191 | | - // will not do anything until this property is added |
192 | 125 | edge_fades = "edge_fade_dists" |
| 126 | + toggle_faces_with_selection_overlay = true |
193 | 127 | } |
194 | 128 | bakeresource( lightprobetexture, vtex, env_light_probe_volume, "ToolObjects/LightProbeVolume" ) |
195 | 129 | bakeresource( cubemaptexture, vtex, env_cubemap, "ToolObjects/CubeMap" ) |
196 | 130 | = env_combined_light_probe_volume : "Combination of an env_cubemap_box and an env_light_probe_volume" |
197 | 131 | [ |
198 | | - // Subclasses in mods which want to support this feature can add this property. |
199 | | - // The name cannot be changed, as it is used by the box_oriented helper. |
200 | | - //edge_fade_dists(vector) : "Edge Fade Dist" : "0 0 0" |
| 132 | + edge_fade_dists(vector) [ group = "Cubemap" ] : "Edge Fade Dist" : "0 0 0" |
201 | 133 | ] |
0 commit comments