Examples/DeferredShading: Use modules
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
[nzsl_version("1.0")]
|
||||
module;
|
||||
|
||||
import Engine/ViewerData;
|
||||
|
||||
[layout(std140)]
|
||||
struct PointLight
|
||||
{
|
||||
@@ -27,20 +29,6 @@ struct SpotLight
|
||||
outerAngle: f32
|
||||
}
|
||||
|
||||
[layout(std140)]
|
||||
struct ViewerData
|
||||
{
|
||||
projectionMatrix: mat4[f32],
|
||||
invProjectionMatrix: mat4[f32],
|
||||
viewMatrix: mat4[f32],
|
||||
invViewMatrix: mat4[f32],
|
||||
viewProjMatrix: mat4[f32],
|
||||
invViewProjMatrix: mat4[f32],
|
||||
renderTargetSize: vec2[f32],
|
||||
invRenderTargetSize: vec2[f32],
|
||||
eyePosition: vec3[f32]
|
||||
}
|
||||
|
||||
[set(0)]
|
||||
external
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user