mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #12288 from tagcup/expose_viewport_size
Expose VIEWPORT_SIZE in shader language.
This commit is contained in:
commit
4785e66eea
4 changed files with 9 additions and 4 deletions
|
|
@ -80,6 +80,7 @@ layout(std140) uniform SceneData { //ubo:0
|
|||
highp float shadow_dual_paraboloid_render_zfar;
|
||||
highp float shadow_dual_paraboloid_render_side;
|
||||
|
||||
highp vec2 viewport_size;
|
||||
highp vec2 screen_pixel_size;
|
||||
highp vec2 shadow_atlas_pixel_size;
|
||||
highp vec2 directional_shadow_pixel_size;
|
||||
|
|
@ -566,6 +567,7 @@ in vec3 normal_interp;
|
|||
uniform bool no_ambient_light;
|
||||
|
||||
|
||||
|
||||
#ifdef USE_RADIANCE_MAP
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue