add directional light component and skylight component, add PCSS and hard shadow
This commit is contained in:
23
Editor/assets/shaders/ShadowMap.glsl
Normal file
23
Editor/assets/shaders/ShadowMap.glsl
Normal file
@ -0,0 +1,23 @@
|
||||
// Shadow Map shader
|
||||
|
||||
#type vertex
|
||||
#version 430
|
||||
|
||||
layout(location = 0) in vec3 a_Position;
|
||||
|
||||
uniform mat4 u_ViewProjection;
|
||||
uniform mat4 u_Transform;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = u_ViewProjection * u_Transform * vec4(a_Position, 1.0);
|
||||
}
|
||||
|
||||
#type fragment
|
||||
#version 430
|
||||
|
||||
layout(location = 0) out vec4 o_Color;
|
||||
|
||||
void main()
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user