Level Editor/Entities/Decal: Difference between revisions

Level Editor: Decal page
 
American spelling
 
Line 5: Line 5:
| exported = yes
| exported = yes
}}
}}
A '''decal''' lays a texture on a surface over the surface's own: a poster on a wall, a sign, a stain on the floor, a painted line, a team logo. Hammer calls these decals and overlays. The surface keeps its own material and lighting underneath; the decal only changes what colour it shows, so a decal in a dark corner is dark and one in the sun is lit, baked lighting included.
A '''decal''' lays a texture on a surface over the surface's own: a poster on a wall, a sign, a stain on the floor, a painted line, a team logo. Hammer calls these decals and overlays. The surface keeps its own material and lighting underneath; the decal only changes what color it shows, so a decal in a dark corner is dark and one in the sun is lit, baked lighting included.


== Placing one ==
== Placing one ==
# Pick the material you want in the [[Level Editor/Panels/Materials|Materials]] tab.
# Pick the material you want in the [[Level Editor/Panels/Materials|Materials]] tab.
# Choose '''Functional > Decal'''.
# Choose '''Functional > Decal'''.
# Click a surface. The decal lies flat on the face you clicked, the right way up on a wall and reading along the X axis on a floor, as big as its texture (256 texture pixels to a metre for the editor's own materials).
# Click a surface. The decal lies flat on the face you clicked, the right way up on a wall and reading along the X axis on a floor, as big as its texture (256 texture pixels to a meter for the editor's own materials).


Move it with the '''Move''' tool and turn it with '''Rotate'''. Its size has handles, and the '''Scale''' tool sets its size rather than stretching it. The pink box round it is where it reaches: across, down, and how deep into and out of the surface.
Move it with the '''Move''' tool and turn it with '''Rotate'''. Its size has handles, and the '''Scale''' tool sets its size rather than stretching it. The pink box round it is where it reaches: across, down, and how deep into and out of the surface.
Line 21: Line 21:
{{Property row|name=Receivers|type=List|default=World|desc=What it lands on. '''World''' is brushes, displacements and terrain only: a player walking past a poster never wears it, and nor does a crate pushed against it. '''World And Props''' takes the map's props too. '''Everything''' lands on characters as well.}}
{{Property row|name=Receivers|type=List|default=World|desc=What it lands on. '''World''' is brushes, displacements and terrain only: a player walking past a poster never wears it, and nor does a crate pushed against it. '''World And Props''' takes the map's props too. '''Everything''' lands on characters as well.}}
{{Property row|name=Draw Order|type=Number|default=0|desc=Where two decals overlap, the higher number draws on top.}}
{{Property row|name=Draw Order|type=Number|default=0|desc=Where two decals overlap, the higher number draws on top.}}
{{Property row|name=Size|type=Metres (X, Y, Z)|default=the texture's size, 0.25 deep|desc=X across the texture, Z down it, Y how deep it reaches. Keep the depth small, or it reaches through a thin wall to the surface behind.}}
{{Property row|name=Size|type=Meters (X, Y, Z)|default=the texture's size, 0.25 deep|desc=X across the texture, Z down it, Y how deep it reaches. Keep the depth small, or it reaches through a thin wall to the surface behind.}}
{{Property row|name=Modulate|type=Colour|default=White|desc=Tints it.}}
{{Property row|name=Modulate|type=Color|default=White|desc=Tints it.}}
{{Property row|name=Albedo Mix|type=0 to 1|default=1|desc=Fades it.}}
{{Property row|name=Albedo Mix|type=0 to 1|default=1|desc=Fades it.}}
{{Property row|name=Normal Fade|type=0 to 1|default=0.5|desc=Fades it off surfaces turned away from it. At 0.5, anything steeper than 60 degrees from its own face, so a floor decal does not smear down the side of a step.}}
{{Property row|name=Normal Fade|type=0 to 1|default=0.5|desc=Fades it off surfaces turned away from it. At 0.5, anything steeper than 60 degrees from its own face, so a floor decal does not smear down the side of a step.}}