-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'CatDogEngine:main' into main
- Loading branch information
Showing
20 changed files
with
962 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#define SHADOW_MAP_CUBE_FIRST_SLOT 11 | ||
#define SHADOW_MAP_CUBE_SECOND_SLOT 12 | ||
#define SHADOW_MAP_CUBE_THIRD_SLOT 13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
$input v_worldPos | ||
|
||
#include "../common/common.sh" | ||
|
||
void main() | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
$input v_worldPos | ||
|
||
#include "../common/common.sh" | ||
|
||
uniform vec4 u_lightWorldPos_farPlane; | ||
|
||
void main() | ||
{ | ||
float diatance = length(v_worldPos - u_lightWorldPos_farPlane.xyz); | ||
gl_FragColor= vec4(diatance/u_lightWorldPos_farPlane.w, 0.0, 0.0, 1.0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
$input a_position | ||
$output v_worldPos | ||
|
||
#include "../common/common.sh" | ||
|
||
void main() | ||
{ | ||
v_worldPos = mul(u_model[0], vec4(a_position, 1.0)).xyz; | ||
gl_Position = mul(u_modelViewProj, vec4(a_position, 1.0)); | ||
} |
Oops, something went wrong.