diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-09-30 20:34:23 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-09-30 20:37:40 +0300 |
commit | 1054f65a29b0b9ee9cf7db8a4036e4a55506ce03 (patch) | |
tree | a3976079acd1863d7889ffd02ea3cdad8ec45f27 /source/blender/draw/engines/eevee/shaders/lightprobe_grid_display_vert.glsl | |
parent | 8249e1ce5e279b97e60cc847fe715a0e1a58a9f1 (diff) |
Object Mode : Add probes data outlines and selectability
This required some small changes to the data display shaders so that they match the way the object mode renders them.
Strangely enough, I had to remove the normal attribute from the display code because it was being not bound as soon as I created another rendering call in object mode. The problem may be deeper but I did not have time for this so I derive the normal from the sphere pos.
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, 1 insertions, 2 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 121859c98f1..fd200ec5984 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 @@ -1,6 +1,5 @@ in vec3 pos; -in vec3 nor; uniform mat4 ViewProjectionMatrix; @@ -31,5 +30,5 @@ void main() increment_z * ls_cell_location.z); gl_Position = ViewProjectionMatrix * vec4(pos * 0.02 * sphere_size + ws_cell_location, 1.0); - worldNormal = normalize(nor); + worldNormal = normalize(pos); }
\ No newline at end of file |