Differential D16125 Diff 56366 source/blender/draw/engines/eevee_next/shaders/eevee_nodetree_lib.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee_next/shaders/eevee_nodetree_lib.glsl
| Show First 20 Lines • Show All 338 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| vec3 window = vec3(0.0); | vec3 window = vec3(0.0); | ||||
| if (false /* probe */) { | if (false /* probe */) { | ||||
| /* Unsupported. It would make the probe camera-dependent. */ | /* Unsupported. It would make the probe camera-dependent. */ | ||||
| window.xy = vec2(0.5); | window.xy = vec2(0.5); | ||||
| } | } | ||||
| else { | else { | ||||
| /* TODO(fclem): Actual camera transform. */ | /* TODO(fclem): Actual camera transform. */ | ||||
| window.xy = project_point(ViewProjectionMatrix, P).xy * 0.5 + 0.5; | window.xy = project_point(ProjectionMatrix, transform_point(ViewMatrix, P)).xy * 0.5 + 0.5; | ||||
| window.xy = window.xy * CameraTexCoFactors.xy + CameraTexCoFactors.zw; | window.xy = window.xy * CameraTexCoFactors.xy + CameraTexCoFactors.zw; | ||||
| } | } | ||||
| return window; | return window; | ||||
| } | } | ||||
| vec3 coordinate_reflect(vec3 P, vec3 N) | vec3 coordinate_reflect(vec3 P, vec3 N) | ||||
| { | { | ||||
| #ifdef MAT_WORLD | #ifdef MAT_WORLD | ||||
| ▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines | |||||