mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Start of inheriting Materials, create material instance for getMaterial from scripts
This commit is contained in:
@@ -3,6 +3,9 @@ using GlitchyEngine.Math;
|
||||
|
||||
namespace GlitchyEngine.Graphics;
|
||||
|
||||
/// <summary>
|
||||
/// An <see cref="Asset"/> that represents how a surface should be rendered.
|
||||
/// </summary>
|
||||
public class Material : Asset
|
||||
{
|
||||
public void SetVariable(string name, float4 value)
|
||||
|
||||
@@ -10,6 +10,10 @@ public class MeshRenderer : Component
|
||||
/// <summary>
|
||||
/// Gets or sets the Material of this <see cref="MeshRenderer"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// If you get the <see cref="Material"/> and it is not yet a runtime-instance,
|
||||
/// a new runtime-instance will be created and returned in its place.
|
||||
/// </remarks>
|
||||
public Material Material
|
||||
{
|
||||
get
|
||||
|
||||
@@ -39,6 +39,10 @@ public class SpriteRenderer : Component
|
||||
/// <summary>
|
||||
/// Gets or sets the Material of this SpriteRenderer.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// If you get the <see cref="Material"/> and it is not yet a runtime-instance,
|
||||
/// a new runtime-instance will be created and returned in its place.
|
||||
/// </remarks>
|
||||
public Material Material
|
||||
{
|
||||
get
|
||||
|
||||
Reference in New Issue
Block a user