RotateEnvironmentMap_Defs.scrapeh 1.4 KB

12345678910111213141516171819202122232425262728
  1. //////////////////////////////////////////////////////////////////////////////
  2. // ©2008 Electronic Arts Inc
  3. //
  4. // Rotate cube map scrape script, Common Definitions
  5. //////////////////////////////////////////////////////////////////////////////
  6. #ifndef SCRAPE_SCRIPT_ROTATE_ENVIRONMENT_DEFS_SCRAPEH
  7. #define SCRAPE_SCRIPT_ROTATE_ENVIRONMENT_DEFS_SCRAPEH
  8. // source redirects, files can change
  9. var texturecube EnvironmentSourceTextureObjects fromscope Terrain EnvironmentTexture
  10. var texturecube EnvironmentSourceTextureWater fromscope WW3D FXOceanCubeMap
  11. // make a destination texture to render to
  12. #define EnvironmentDestinationTextureSize 128
  13. #define EnvironmentDestinationTextureFormat $WW3D.EnvMapRenderTargetTextureFormat
  14. var texturecube EnvironmentDestinationTextureObjects EnvironmentDestinationTextureSize EnvironmentDestinationTextureSize EnvironmentDestinationTextureFormat autogenmipmap
  15. var texturecube EnvironmentDestinationTextureWater EnvironmentDestinationTextureSize EnvironmentDestinationTextureSize EnvironmentDestinationTextureFormat autogenmipmap
  16. // make the associated render target
  17. #if defined(EA_PLATFORM_XENON)
  18. var surface EnvironmentDestinationRenderTarget edram EnvironmentDestinationTextureSize EnvironmentDestinationTextureSize $WW3D.EnvMapRenderTargetSurfaceFormat
  19. #endif
  20. // make shader
  21. var shader RotateEnvironmentMapShader RotateEnvironmentMap.fx
  22. #endif // SCRAPE_SCRIPT_ROTATE_ENVIRONMENT_DEFS_SCRAPEH