Mise à jour

This commit is contained in:
Alex38Lyon
2025-06-06 13:53:41 +02:00
parent 20df36c812
commit 174d6f3339
10 changed files with 55 additions and 2 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+49
View File
@@ -0,0 +1,49 @@
Shader "Shader Graphs/VertexColorLitShader"
{
Properties
{
}
SubShader
{
Tags { "RenderType"="Opaque" }
LOD 200
Pass
{
Name "ForwardLit"
Tags { "LightMode" = "UniversalForward" }
HLSLPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
struct Attributes
{
float4 positionOS : POSITION;
float4 color : COLOR;
};
struct Varyings
{
float4 positionHCS : SV_POSITION;
float4 color : COLOR;
};
Varyings vert (Attributes input)
{
Varyings output;
output.positionHCS = TransformObjectToHClip(input.positionOS.xyz);
output.color = input.color;
return output;
}
half4 frag (Varyings input) : SV_Target
{
return input.color;
}
ENDHLSL
}
}
}