| 12345678910111213141516171819202122232425262728 |
- //////////////////////////////////////////////////////////////////////////////
- // ©2008 Electronic Arts Inc
- //
- // Rotate cube map scrape script, Common Definitions
- //////////////////////////////////////////////////////////////////////////////
- #ifndef SCRAPE_SCRIPT_ROTATE_ENVIRONMENT_DEFS_SCRAPEH
- #define SCRAPE_SCRIPT_ROTATE_ENVIRONMENT_DEFS_SCRAPEH
- // source redirects, files can change
- var texturecube EnvironmentSourceTextureObjects fromscope Terrain EnvironmentTexture
- var texturecube EnvironmentSourceTextureWater fromscope WW3D FXOceanCubeMap
- // make a destination texture to render to
- #define EnvironmentDestinationTextureSize 128
- #define EnvironmentDestinationTextureFormat $WW3D.EnvMapRenderTargetTextureFormat
- var texturecube EnvironmentDestinationTextureObjects EnvironmentDestinationTextureSize EnvironmentDestinationTextureSize EnvironmentDestinationTextureFormat autogenmipmap
- var texturecube EnvironmentDestinationTextureWater EnvironmentDestinationTextureSize EnvironmentDestinationTextureSize EnvironmentDestinationTextureFormat autogenmipmap
- // make the associated render target
- #if defined(EA_PLATFORM_XENON)
- var surface EnvironmentDestinationRenderTarget edram EnvironmentDestinationTextureSize EnvironmentDestinationTextureSize $WW3D.EnvMapRenderTargetSurfaceFormat
- #endif
- // make shader
- var shader RotateEnvironmentMapShader RotateEnvironmentMap.fx
- #endif // SCRAPE_SCRIPT_ROTATE_ENVIRONMENT_DEFS_SCRAPEH
|