Renamed simple textured/untextured shaders to be more readable.

This commit is contained in:
Kai Blaschke
2023-04-29 14:52:50 +02:00
parent 879c6c7111
commit e84acbca92
7 changed files with 9 additions and 9 deletions

View File

@ -10,10 +10,10 @@ set(SHADER_FILES
Shaders/PresetShaderHeaderGlsl330.inc
Shaders/PresetWarpFragmentShaderGlsl330.frag
Shaders/PresetWarpVertexShaderGlsl330.vert
Shaders/V2fC4fFragmentShaderGlsl330.frag
Shaders/V2fC4fT2fFragmentShaderGlsl330.frag
Shaders/V2fC4fT2fVertexShaderGlsl330.vert
Shaders/V2fC4fVertexShaderGlsl330.vert
Shaders/TexturedDrawFragmentShaderGlsl330.frag
Shaders/TexturedDrawVertexShaderGlsl330.vert
Shaders/UntexturedDrawFragmentShaderGlsl330.frag
Shaders/UntexturedDrawVertexShaderGlsl330.vert
)
string(REPLACE ";" "\\;" SHADER_FILES_ARG "${SHADER_FILES}")

View File

@ -10,7 +10,7 @@ MotionVectors::MotionVectors(PresetState& presetState)
{
auto staticShaders = libprojectM::MilkdropPreset::MilkdropStaticShaders::Get();
m_motionVectorShader.CompileProgram(staticShaders->GetPresetMotionVectorsVertexShader(),
staticShaders->GetV2fC4fFragmentShader());
staticShaders->GetUntexturedDrawFragmentShader());
RenderItem::Init();
}

View File

@ -13,10 +13,10 @@ PresetState::PresetState()
: globalMemory(projectm_eval_memory_buffer_create())
{
auto staticShaders = libprojectM::MilkdropPreset::MilkdropStaticShaders::Get();
untexturedShader.CompileProgram(staticShaders->GetV2fC4fVertexShader(),
staticShaders->GetV2fC4fFragmentShader());
texturedShader.CompileProgram(staticShaders->GetV2fC4fT2fVertexShader(),
staticShaders->GetV2fC4fT2fFragmentShader());
untexturedShader.CompileProgram(staticShaders->GetUntexturedDrawVertexShader(),
staticShaders->GetUntexturedDrawFragmentShader());
texturedShader.CompileProgram(staticShaders->GetTexturedDrawVertexShader(),
staticShaders->GetTexturedDrawFragmentShader());
std::random_device randomDevice;
std::mt19937 randomGenerator(randomDevice());