Fix static array issue and scratch issue.
This commit is contained in:
50
pass_test.ink
Normal file
50
pass_test.ink
Normal file
@@ -0,0 +1,50 @@
|
||||
shader Entity {
|
||||
constants :: Constant_Buffer {
|
||||
model : float4x4;
|
||||
projection : float4x4;
|
||||
light_view : float4x4;
|
||||
|
||||
light_dir : float3;
|
||||
light_color : float3;
|
||||
}
|
||||
|
||||
Vertex_In :: struct {
|
||||
position : float3;
|
||||
normal : float3;
|
||||
uv : float2;
|
||||
}
|
||||
|
||||
Vertex_Out :: struct {
|
||||
position : float4;
|
||||
normal : float3;
|
||||
uv : float2;
|
||||
world_pos : float3;
|
||||
}
|
||||
|
||||
vertex main :: (in : Vertex_In) -> Vertex_Out {
|
||||
// Do some stuff here
|
||||
}
|
||||
|
||||
pass : shadow {
|
||||
vertex = main;
|
||||
pixel :: (in : Vertex_Out) -> float4 {
|
||||
// Do some shadow stuff
|
||||
}
|
||||
}
|
||||
|
||||
pass : picking {
|
||||
vertex = main;
|
||||
pixel :: (in : Vertex_Out) -> float4 {
|
||||
// Do some picking stuff
|
||||
}
|
||||
}
|
||||
|
||||
pass : lighting {
|
||||
vertex = main;
|
||||
pixel :: (in : Vertex_Out) -> float4 {
|
||||
// Do some lighting stuff
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user