mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-02 19:38:24 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
17 lines
589 B
C#
17 lines
589 B
C#
namespace Sandbox;
|
|
|
|
/// <summary>
|
|
/// Component that creates a projected decal relative to its GameObject.
|
|
/// </summary>
|
|
[Hide]
|
|
[Obsolete( "DecalRenderer is obsolete, use Decal which uses textures instead of materials https://sbox.game/dev/doc/reference/components/decals/" )]
|
|
public class DecalRenderer : Renderer, Component.ExecuteInEditor
|
|
{
|
|
[Obsolete]
|
|
public Material Material { get; set; }
|
|
|
|
[Property] public Vector3 Size { get; set; } = new( 32, 32, 256 );
|
|
[Property] public Color TintColor { get; set; } = Color.White;
|
|
[Property] public bool TriPlanar { get; set; } = false;
|
|
}
|