Skip to content
Browse files

fixed mogre example to use %

fixed copying dependant libraries to output dir.
  • Loading branch information...
1 parent e2c6f1c commit 20a34c5d7beeee852c94766a0825b3e98f705a24 @WolfgangSt WolfgangSt committed Sep 1, 2011
View
12 IIS.SLSharp.Examples.Mogre/IIS.SLSharp.Examples.Mogre.csproj
@@ -84,6 +84,18 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
+ <Content Include="..\Dependencies\OgreMain.dll">
+ <Link>OgreMain.dll</Link>
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="..\Dependencies\RenderSystem_Direct3D9.dll">
+ <Link>RenderSystem_Direct3D9.dll</Link>
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="..\Dependencies\RenderSystem_GL.dll">
+ <Link>RenderSystem_GL.dll</Link>
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
<Content Include="..\Resources\tiles.png">
<Link>tiles.png</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
View
2 IIS.SLSharp.Examples.Mogre/Shaders/WangShader.cs
@@ -20,7 +20,7 @@ public abstract class WangShader : Shader
[FragmentShader]
public vec4 WangAt(vec2 tex)
{
- var address = tex - mod(tex, 1.0f / 256.0f);
+ var address = tex - tex % (1.0f / 256.0f);
var subPos = Fraction(tex * 256.0f) / 4.0f;
var offset = texture(WangMap, Fraction(address)).xw;
var tc = offset + subPos;

0 comments on commit 20a34c5

Please sign in to comment.
Something went wrong with that request. Please try again.