Skip to content

Commit

Permalink
UnifiedShader: add dFdx, dFdy
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Aug 29, 2024
1 parent fb11c03 commit 623c054
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Media/Main/OgreUnifiedShader.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ vec4 textureCubeLod(samplerCube s, vec3 v, float lod) { return texCUBElod(s, vec
#define mix lerp
#define fract frac
#define inversesqrt rsqrt
#define dFdx ddx
#define dFdy ddy

float mod(float _a, float _b) { return _a - _b * floor(_a / _b); }
vec2 mod(vec2 _a, vec2 _b) { return _a - _b * floor(_a / _b); }
Expand Down

0 comments on commit 623c054

Please sign in to comment.