History

more work on improved model picking

ZappoMan committed 11 years ago

Commit 6b5fdce1 parent f13bf653 files · +1 −26Browse files

Showing the changes to interface/src/renderer/Model.cpp (1 of 3 files). Show all

Unified · Split

interface/src/renderer/Model.cpp+0−18
@@ -103,9 +103,6 @@ Model::SkinLocations Model::_skinNormalSpecularMapLocations; · 102 unmodified lines
103103 Model::SkinLocations Model::_skinShadowLocations;
104104 Model::SkinLocations Model::_skinTranslucentLocations;
105105
106−ProgramObject Model::_selectProgram;
107−Model::Locations Model::_selectLocations;
108−
109106 void Model::setScale(const glm::vec3& scale) {
110107 setScaleInternal(scale);
111108 // if anyone sets scale manually, then we are no longer scaled to fit
@@ -390,14 +387,6 @@ void Model::init() { · 278 unmodified lines
390387 _skinTranslucentProgram.link();
391388
392389 initSkinProgram(_skinTranslucentProgram, _skinTranslucentLocations);
393−
394−
395− // select/ray picking program
396− _selectProgram.addShaderFromSourceFile(QGLShader::Vertex, Application::resourcesPath() + "shaders/select.vert");
397− _selectProgram.addShaderFromSourceFile(QGLShader::Fragment, Application::resourcesPath() + "shaders/select.frag");
398− _selectProgram.link();
399− initProgram(_selectProgram, _selectLocations);
400−
401390 }
402391 }
403392
@@ -2166,13 +2155,6 @@ void Model::pickPrograms(gpu::Batch& batch, RenderMode mode, bool translucent, f · 1762 unmodified lines
21662155 ProgramObject* activeProgram = program;
21672156 Locations* activeLocations = locations;
21682157
2169− // XXXBHG - hack to render yellow
2170− if (mode == SELECT_RENDER_MODE) {
2171− //activeProgram = &_selectProgram;
2172− //activeLocations = &_selectLocations;
2173− // need skin version
2174− }
2175−
21762158 if (isSkinned) {
21772159 activeProgram = skinProgram;
21782160 activeLocations = skinLocations;