You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix SSR orientation issues when using orthogonal camera
- Use negative clip space values to fix reversed rotations in reflections - Use constant -z view vector when raymarching to fix perspective in reflections
This commit is contained in:
@@ -90,7 +90,7 @@ void main() {
|
||||
if (sc_multiview) {
|
||||
view_dir = normalize(vertex + scene_data.eye_offset[params.view_index].xyz);
|
||||
} else {
|
||||
view_dir = normalize(vertex);
|
||||
view_dir = params.orthogonal ? vec3(0.0, 0.0, -1.0) : normalize(vertex);
|
||||
}
|
||||
vec3 ray_dir = normalize(reflect(view_dir, normal));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user