fixed radians on nvidia

This commit is contained in:
WoMspace 2023-01-21 20:28:28 +00:00
parent dd4e5f2e98
commit 8102fefdb3
5 changed files with 5 additions and 5 deletions

View File

@ -841,7 +841,7 @@ void main() {
#ifdef DOF_JITTER
vec2 jitter = clamp(jitter_offsets[frameCounter % 64], -1.0, 1.0);
jitter = rotate(radians(frameCounter)) * jitter;
jitter = rotate(radians(float(frameCounter))) * jitter;
jitter.y *= aspectRatio;
jitter.x *= DOF_ANAMORPHIC_RATIO;
jitter.xy *= 0.004 * JITTER_STRENGTH;

View File

@ -83,7 +83,7 @@ void main() {
#ifdef DOF_JITTER
vec2 jitter = clamp(jitter_offsets[frameCounter % 64], -1.0, 1.0);
jitter = rotate(radians(frameCounter)) * jitter;
jitter = rotate(radians(float(frameCounter))) * jitter;
jitter.y *= aspectRatio;
jitter.x *= DOF_ANAMORPHIC_RATIO;

View File

@ -267,7 +267,7 @@ void main() {
#ifdef DOF_JITTER
vec2 jitter = clamp(jitter_offsets[frameCounter % 64], -1.0, 1.0);
jitter = rotate(radians(frameCounter)) * jitter;
jitter = rotate(radians(float(frameCounter))) * jitter;
jitter.y *= aspectRatio;
jitter.x *= DOF_ANAMORPHIC_RATIO;

View File

@ -123,7 +123,7 @@ void main() {
#ifdef DOF_JITTER
vec2 jitter = clamp(jitter_offsets[frameCounter % 64], -1.0, 1.0);
jitter = rotate(radians(frameCounter)) * jitter;
jitter = rotate(radians(float(frameCounter))) * jitter;
jitter.y *= aspectRatio;
jitter.x *= DOF_ANAMORPHIC_RATIO;

View File

@ -104,7 +104,7 @@ void main() {
#ifdef DOF_JITTER_SHADOW
// This is in CLIP SPACE
vec2 jitter = clamp(jitter_offsets[frameCounter % 64], -1.0, 1.0);
jitter = rotate(radians(frameCounter)) * jitter;
jitter = rotate(radians(float(frameCounter))) * jitter;
jitter.y *= aspectRatio;
jitter.x *= DOF_ANAMORPHIC_RATIO;