diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-06-15 01:10:34 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-06-15 01:57:16 +0300 |
commit | cac851a00e0b654e9cc3ab9c4226e5cfab5f5f3d (patch) | |
tree | 519972b4c811d4efe6993bf2c41d43a97b7c5a0f /source/blender/draw/engines/eevee/shaders/lightprobe_grid_display_vert.glsl | |
parent | 810464e5f721a14bc3b6e3071f63a93f2ff68043 (diff) |
Eevee: Probes: Add data display for cubemaps.
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/lightprobe_grid_display_vert.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/lightprobe_grid_display_vert.glsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/lightprobe_grid_display_vert.glsl b/source/blender/draw/engines/eevee/shaders/lightprobe_grid_display_vert.glsl index 568de294845..121859c98f1 100644 --- a/source/blender/draw/engines/eevee/shaders/lightprobe_grid_display_vert.glsl +++ b/source/blender/draw/engines/eevee/shaders/lightprobe_grid_display_vert.glsl @@ -4,6 +4,7 @@ in vec3 nor; uniform mat4 ViewProjectionMatrix; +uniform float sphere_size; uniform int offset; uniform ivec3 grid_resolution; uniform vec3 corner; @@ -29,6 +30,6 @@ void main() increment_y * ls_cell_location.y + increment_z * ls_cell_location.z); - gl_Position = ViewProjectionMatrix * vec4(pos * 0.02 + ws_cell_location, 1.0); + gl_Position = ViewProjectionMatrix * vec4(pos * 0.02 * sphere_size + ws_cell_location, 1.0); worldNormal = normalize(nor); }
\ No newline at end of file |