initial commit-moved from vulkan_guide
This commit is contained in:
20
shaders/input_structures.glsl
Normal file
20
shaders/input_structures.glsl
Normal file
@@ -0,0 +1,20 @@
|
||||
layout(set = 0, binding = 0) uniform SceneData{
|
||||
|
||||
mat4 view;
|
||||
mat4 proj;
|
||||
mat4 viewproj;
|
||||
mat4 lightViewProj;
|
||||
vec4 ambientColor;
|
||||
vec4 sunlightDirection; //w for sun power
|
||||
vec4 sunlightColor;
|
||||
} sceneData;
|
||||
|
||||
layout(set = 1, binding = 0) uniform GLTFMaterialData{
|
||||
|
||||
vec4 colorFactors;
|
||||
vec4 metal_rough_factors;
|
||||
|
||||
} materialData;
|
||||
|
||||
layout(set = 1, binding = 1) uniform sampler2D colorTex;
|
||||
layout(set = 1, binding = 2) uniform sampler2D metalRoughTex;
|
||||
Reference in New Issue
Block a user