@@ -87,7 +87,7 @@ Renderer::Renderer() {
8787
8888 Gothic::inst ().togglePathtrace .bind (this , &Renderer::togglePathtrace);
8989
90- settings.giMethod = Gothic ::options ().doGi ;
90+ settings.giMethod = Shaders ::options ().doGi ;
9191 settings.vsmEnabled = Shaders::options ().doVirtualShadow ;
9292 settings.rtsmEnabled = Shaders::options ().doSoftwareShadow ;
9393 settings.swrEnabled = Shaders::options ().swRenderingPreset >0 ;
@@ -139,7 +139,7 @@ void Renderer::setupSettings() {
139139 settings.moonSize = 400 ;
140140
141141 settings.vidResIndex = Gothic::settingsGetF (" INTERNAL" ," vidResIndex" );
142- settings.aaEnabled = (Gothic ::options ().aaPreset >0 ) && (settings.vidResIndex ==0 );
142+ settings.aaEnabled = (Shaders ::options ().aaPreset >0 ) && (settings.vidResIndex ==0 );
143143
144144 // direct lighting
145145 if (settings.rtsmEnabled )
@@ -186,8 +186,8 @@ void Renderer::toggleGi() {
186186 if (!Shaders::options ().doRtScene )
187187 return ;
188188
189- if (settings.giMethod ==GiMethod::None && Gothic ::options ().doGi !=GiMethod::None)
190- settings.giMethod = Gothic ::options ().doGi ;
189+ if (settings.giMethod ==GiMethod::None && Shaders ::options ().doGi !=GiMethod::None)
190+ settings.giMethod = Shaders ::options ().doGi ;
191191 else if (settings.giMethod ==GiMethod::None && Shaders::isGi1Supported ())
192192 settings.giMethod = GiMethod::Probes; // default for now
193193 else
@@ -765,7 +765,7 @@ void Renderer::drawTonemapping(Attachment& result, Encoder<CommandBuffer>& cmd,
765765 }
766766
767767void Renderer::drawCMAA2 (Tempest::Attachment& result, Tempest::Encoder<Tempest::CommandBuffer>& cmd, const WorldView& wview) {
768- auto & pso = shaders.cmaa2EdgeColor2x2Presets [Gothic ::options ().aaPreset ];
768+ auto & pso = shaders.cmaa2EdgeColor2x2Presets [Shaders ::options ().aaPreset ];
769769 const IVec3 inputGroupSize = pso.workGroupSize ();
770770 const IVec3 outputGroupSize = inputGroupSize - IVec3 (2 , 2 , 0 );
771771 const uint32_t groupCountX = uint32_t ((sceneLinear.w () + outputGroupSize.x * 2 - 1 ) / (outputGroupSize.x * 2 ));
0 commit comments