Merge pull request #12288 from tagcup/expose_viewport_size

Expose VIEWPORT_SIZE in shader language.
This commit is contained in:
Juan Linietsky 2017-10-30 19:32:21 -03:00 committed by GitHub
commit 4785e66eea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 4 deletions

View file

@ -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