Differential D16125 Diff 56366 source/blender/draw/engines/eevee/shaders/lightprobe_grid_display_vert.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/shaders/lightprobe_grid_display_vert.glsl
| Show All 36 Lines | void main() | ||||
| vec3 ws_cell_location = corner + | vec3 ws_cell_location = corner + | ||||
| (increment_x * ls_cell_location.x + increment_y * ls_cell_location.y + | (increment_x * ls_cell_location.x + increment_y * ls_cell_location.y + | ||||
| increment_z * ls_cell_location.z); | increment_z * ls_cell_location.z); | ||||
| quadCoord = pos[vert_id]; | quadCoord = pos[vert_id]; | ||||
| vec3 screen_pos = screen_vecs[0] * quadCoord.x + screen_vecs[1] * quadCoord.y; | vec3 screen_pos = screen_vecs[0] * quadCoord.x + screen_vecs[1] * quadCoord.y; | ||||
| ws_cell_location += screen_pos * sphere_size; | ws_cell_location += screen_pos * sphere_size; | ||||
| gl_Position = ViewProjectionMatrix * vec4(ws_cell_location, 1.0); | gl_Position = ProjectionMatrix * (ViewMatrix * vec4(ws_cell_location, 1.0)); | ||||
| gl_Position.z += 0.0001; /* Small bias to let the icon draw without zfighting */ | gl_Position.z += 0.0001; /* Small bias to let the icon draw without zfighting */ | ||||
| } | } | ||||