X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fscene_standard.h;fp=shaders%2Fscene_standard.h;h=0000000000000000000000000000000000000000;hb=bececcbb7b2e886e72425e7c070e1fdc3aa126dc;hp=0dca3c7189881e3e158158a61bd519fa14c847e0;hpb=93790b71d3a89724255dc73239e38c08ad4bbac7;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/scene_standard.h b/shaders/scene_standard.h deleted file mode 100644 index 0dca3c7..0000000 --- a/shaders/scene_standard.h +++ /dev/null @@ -1,50 +0,0 @@ -#pragma once -#include "vg/vg_engine.h" -extern struct vg_shader _shader_scene_standard; -extern GLuint _uniform_scene_standard_uMdl; -extern GLuint _uniform_scene_standard_uPv; -extern GLuint _uniform_scene_standard_uPvmPrev; -extern GLuint _uniform_scene_standard_uTexGarbage; -extern GLuint _uniform_scene_standard_uTexMain; -extern GLuint _uniform_scene_standard_uCamera; -extern GLuint _uniform_scene_standard_uPlane; -extern GLuint _uniform_scene_standard_g_world_depth; -extern GLuint _uniform_scene_standard_uLightsArray; -extern GLuint _uniform_scene_standard_uLightsIndex; -static inline void shader_scene_standard_uMdl(m4x3f m) -{ - glUniformMatrix4x3fv(_uniform_scene_standard_uMdl,1,GL_FALSE,(f32*)m); -} -static inline void shader_scene_standard_uPv(m4x4f m) -{ - glUniformMatrix4fv(_uniform_scene_standard_uPv,1,GL_FALSE,(f32*)m); -} -static inline void shader_scene_standard_uPvmPrev(m4x4f m) -{ - glUniformMatrix4fv(_uniform_scene_standard_uPvmPrev,1,GL_FALSE,(f32*)m); -} -static inline void shader_scene_standard_uTexGarbage(int i) -{ - glUniform1i(_uniform_scene_standard_uTexGarbage,i); -} -static inline void shader_scene_standard_uTexMain(int i) -{ - glUniform1i(_uniform_scene_standard_uTexMain,i); -} -static inline void shader_scene_standard_uCamera(v3f v) -{ - glUniform3fv(_uniform_scene_standard_uCamera,1,v); -} -static inline void shader_scene_standard_uPlane(v4f v) -{ - glUniform4fv(_uniform_scene_standard_uPlane,1,v); -} -static inline void shader_scene_standard_g_world_depth(int i) -{ - glUniform1i(_uniform_scene_standard_g_world_depth,i); -} -static inline void shader_scene_standard_use(void); -static inline void shader_scene_standard_use(void) -{ - glUseProgram(_shader_scene_standard.id); -}