Permalink
Browse files

Tutorial extended to contain WaterFlow effects.

-Major changes to the Game1.cs show the creation and management of the
water geometry.
-Minor changes to Series4Effects.fx for the water shader.
-Greyscale image files were created to initialize the terrain geometry
(photoshop source included)
  • Loading branch information...
mikerandrup committed Aug 29, 2012
1 parent 6608b54 commit 134e654f60b0dff71a5402227d2f058122ae1c86
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -11,3 +11,11 @@ Content\cloudMap.xnb
Content\heightmap.xnb
Content\treeMap.xnb
Content\cloudMap_0.xnb
+Content\islandmap.xnb
+Content\rivermap.xnb
+Content\thankyou.xnb
+Content\valleymap.xnb
+Content\fractalmap.xnb
+Content\stairsmap.xnb
+Content\mazemap.xnb
+Content\mazemap2.xnb
@@ -257,9 +257,9 @@ WPixelToFrame WaterPS(WVertexToPixel PSIn)
float fresnelTerm = dot(eyeVector, normalVector);
float4 combinedColor = lerp(reflectiveColor, refractiveColor, fresnelTerm);
- float4 dullColor = float4(0.3f, 0.3f, 0.5f, 1.0f);
+ float4 dullColor = float4(0.1f, 0.2f, 0.5f, 1.0f);
- Output.Color = lerp(combinedColor, dullColor, 0.2f);
+ Output.Color = lerp(combinedColor, dullColor, 0.8f);
float3 reflectionVector = -reflect(xLightDirection, normalVector);
float specular = dot(normalize(reflectionVector), normalize(eyeVector));
@@ -105,6 +105,56 @@
<Processor>TextureProcessor</Processor>
</Compile>
</ItemGroup>
+ <ItemGroup>
+ <Compile Include="islandmap.bmp">
+ <Name>islandmap</Name>
+ <Importer>TextureImporter</Importer>
+ <Processor>TextureProcessor</Processor>
+ </Compile>
+ <Compile Include="rivermap.bmp">
+ <Name>rivermap</Name>
+ <Importer>TextureImporter</Importer>
+ <Processor>TextureProcessor</Processor>
+ </Compile>
+ <Compile Include="thankyou.bmp">
+ <Name>thankyou</Name>
+ <Importer>TextureImporter</Importer>
+ <Processor>TextureProcessor</Processor>
+ </Compile>
+ <Compile Include="valleymap.bmp">
+ <Name>valleymap</Name>
+ <Importer>TextureImporter</Importer>
+ <Processor>TextureProcessor</Processor>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="fractalmap.bmp">
+ <Name>fractalmap</Name>
+ <Importer>TextureImporter</Importer>
+ <Processor>TextureProcessor</Processor>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="stairsmap.bmp">
+ <Name>stairsmap</Name>
+ <Importer>TextureImporter</Importer>
+ <Processor>TextureProcessor</Processor>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="mazemap.bmp">
+ <Name>mazemap</Name>
+ <Importer>TextureImporter</Importer>
+ <Processor>TextureProcessor</Processor>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="mazemap2.bmp">
+ <Name>mazemap2</Name>
+ <Importer>TextureImporter</Importer>
+ <Processor>TextureProcessor</Processor>
+ </Compile>
+ </ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 134e654

Please sign in to comment.