@@ -126,9 +126,9 @@ class ofShadow {
126126 void setNearClip ( float anear ) { data->nearClip = anear; }
127127 void setFarClip ( float afar ) { data->farClip = afar; }
128128
129- const bool isMultiCubeFacePass () const ;
130- const bool isSingleOmniPass () const ;
131- const int getNumShadowDepthPasses () const ;
129+ bool isMultiCubeFacePass () const ;
130+ bool isSingleOmniPass () const ;
131+ int getNumShadowDepthPasses () const ;
132132 void setSingleOmniPass ( bool ab );
133133 int getDepthMapWidth ();
134134 int getDepthMapHeight ();
@@ -148,13 +148,13 @@ class ofShadow {
148148 const float & getStrength () { return data->strength ; }
149149 void setStrength (float astrength) { data->strength = astrength; }
150150
151- const float getBias () { return data->bias ; }
151+ float getBias () const { return data->bias ; }
152152 void setBias ( float abias ) { data->bias = abias; }
153153
154- const float getNormalBias () { return data->normalBias ; }
154+ float getNormalBias () const { return data->normalBias ; }
155155 void setNormalBias ( float abias ) { data->normalBias = abias; }
156156
157- const float getSampleRadius () { return data->sampleRadius ; }
157+ float getSampleRadius () const { return data->sampleRadius ; }
158158 void setSampleRadius ( float aradius ) { data->sampleRadius = aradius; }
159159
160160 void setAreaLightSize ( float awidth, float aheight ) {mAreaLightWidth =awidth;mAreaLightHeight =aheight;};
@@ -165,8 +165,8 @@ class ofShadow {
165165 std::string getShadowTypeAsString ();
166166
167167 const ofShader & getDepthShader (ofGLProgrammableRenderer & renderer) const ;
168- const bool setupShadowDepthShader (ofShader& ashader, const std::string aShaderMain) const ;
169- const bool setupShadowDepthShader (ofShader& ashader, int aLightType, const std::string aShaderMain, bool abSinglePass) const ;
168+ bool setupShadowDepthShader (ofShader& ashader, const std::string aShaderMain) const ;
169+ bool setupShadowDepthShader (ofShader& ashader, int aLightType, const std::string aShaderMain, bool abSinglePass) const ;
170170 void updateDepth (const ofShader & shader,ofGLProgrammableRenderer & renderer) const ;
171171 void updateDepth (const ofShader & shader,GLenum aCubeFace,ofGLProgrammableRenderer & renderer) const ;
172172
0 commit comments