Skip to content

Commit

Permalink
Fix textured light shader param on DesktopGL; Separate intermediary p…
Browse files Browse the repository at this point in the history
…aths for platforms
  • Loading branch information
discosultan committed Mar 25, 2017
1 parent ba7f606 commit 4c3e9f6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Samples/Sandbox/Sandbox.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@
</ItemGroup>
<ItemGroup>
<Reference Include="MonoGame.Framework, Version=3.6.0.1625, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\MonoGame.Framework.WindowsDX.3.6.0.1625\lib\net40\MonoGame.Framework.dll</HintPath>
<Private>True</Private>
<HintPath>$(MonoGameInstallDirectory)\MonoGame\v3.0\Assemblies\Windows\MonoGame.Framework.dll</HintPath>
</Reference>
<Reference Include="System" />
</ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions Source/Graphics/Renderers/LightRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ public void Load(PenumbraEngine engine, Effect fxLight)
_fxSpotLightTech = _fxLight.Techniques["Spotlight"];
_fxTexturedLightTech = _fxLight.Techniques["TexturedLight"];
_fxDebugLightTech = _fxLight.Techniques["DebugLight"];
#if WINDOWSDX
_fxLightParamTexture = _fxLight.Parameters["Texture"];
#elif DESKTOPGL
_fxLightParamTexture = _fxLight.Parameters["TextureSampler+Texture"];
#endif
_fxLightParamTextureTransform = _fxLight.Parameters["TextureTransform"];
_fxLightParamWvp = _fxLight.Parameters["WorldViewProjection"];
_fxLightParamColor = _fxLight.Parameters["LightColor"];
Expand Down
2 changes: 2 additions & 0 deletions Source/MonoGame.Penumbra.DesktopGL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\DesktopGL\</OutputPath>
<IntermediateOutputPath>obj\Debug\DesktopGL\</IntermediateOutputPath>
<DocumentationFile>bin\Debug\DesktopGL\MonoGame.Penumbra.xml</DocumentationFile>
<DefineConstants>TRACE;DEBUG;MONOGAME;DESKTOPGL</DefineConstants>
<ErrorReport>prompt</ErrorReport>
Expand All @@ -33,6 +34,7 @@
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\DesktopGL\</OutputPath>
<IntermediateOutputPath>obj\Release\DesktopGL\</IntermediateOutputPath>
<DocumentationFile>bin\Release\DesktopGL\MonoGame.Penumbra.xml</DocumentationFile>
<DefineConstants>TRACE;MONOGAME;DESKTOPGL</DefineConstants>
<ErrorReport>prompt</ErrorReport>
Expand Down
2 changes: 2 additions & 0 deletions Source/MonoGame.Penumbra.WindowsDX.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\WindowsDX\</OutputPath>
<IntermediateOutputPath>obj\Debug\WindowsDX\</IntermediateOutputPath>
<DocumentationFile>bin\Debug\WindowsDX\MonoGame.Penumbra.xml</DocumentationFile>
<DefineConstants>TRACE;DEBUG;MONOGAME;WINDOWSDX</DefineConstants>
<ErrorReport>prompt</ErrorReport>
Expand All @@ -33,6 +34,7 @@
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\WindowsDX\</OutputPath>
<IntermediateOutputPath>obj\Release\WindowsDX\</IntermediateOutputPath>
<DocumentationFile>bin\Release\WindowsDX\MonoGame.Penumbra.xml</DocumentationFile>
<DefineConstants>TRACE;MONOGAME;WINDOWSDX</DefineConstants>
<ErrorReport>prompt</ErrorReport>
Expand Down
Binary file modified Tools/MonoGame.Penumbra.DesktopGL.nuspec
Binary file not shown.
Binary file modified Tools/MonoGame.Penumbra.WindowsDX.nuspec
Binary file not shown.

0 comments on commit 4c3e9f6

Please sign in to comment.