X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fmodel_character_view.h;h=40e27cbd853d3320173e3f3b4af36e3af0ee1417;hb=4eccfd7252f8ff165670842df537441afae5458b;hp=9489520c51b8f1fc33e33cd257742570ce395e7a;hpb=5f6a4f9df6c8accc89f1920bfe9ace3cbac4c4b6;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/model_character_view.h b/shaders/model_character_view.h index 9489520..40e27cb 100644 --- a/shaders/model_character_view.h +++ b/shaders/model_character_view.h @@ -11,7 +11,8 @@ extern GLuint _uniform_model_character_view_uLightsIndex; extern GLuint _uniform_model_character_view_uTexSceneDepth; extern GLuint _uniform_model_character_view_uInverseRatioDepth; extern GLuint _uniform_model_character_view_uInverseRatioMain; -extern GLuint _uniform_model_character_view_uDepthCompare; +extern GLuint _uniform_model_character_view_uDepthMode; +extern GLuint _uniform_model_character_view_uDitherCutoff; static inline void shader_model_character_view_uPv(m4x4f m) { glUniformMatrix4fv(_uniform_model_character_view_uPv,1,GL_FALSE,(f32*)m); @@ -40,9 +41,13 @@ static inline void shader_model_character_view_uInverseRatioMain(v3f v) { glUniform3fv(_uniform_model_character_view_uInverseRatioMain,1,v); } -static inline void shader_model_character_view_uDepthCompare(int b) +static inline void shader_model_character_view_uDepthMode(int b) { - glUniform1i(_uniform_model_character_view_uDepthCompare,b); + glUniform1i(_uniform_model_character_view_uDepthMode,b); +} +static inline void shader_model_character_view_uDitherCutoff(f32 f) +{ + glUniform1f(_uniform_model_character_view_uDitherCutoff,f); } static inline void shader_model_character_view_use(void); static inline void shader_model_character_view_use(void)