OGRE Wiki
Support and community documentation for Ogre3D
Ogre Forums
ogre3d.org
Log in
Username:
Password:
CapsLock is on.
Remember me (for 1 year)
Log in
Home
Tutorials
Tutorials Home
Basic Tutorials
Intermediate Tutorials
Mad Marx Tutorials
In Depth Tutorials
Older Tutorials
External Tutorials
Cookbook
Cookbook Home
CodeBank
Snippets
Experiences
Ogre Articles
Libraries
Libraries Home
Alternative Languages
Assembling A Toolset
Development Tools
OGRE Libraries
List of Libraries
Tools
Tools Home
DCC Tools
DCC Tutorials
DCC Articles
DCC Resources
Assembling a production pipeline
Development
Development Home
Roadmap
Building Ogre
Installing the Ogre SDK
Setting Up An Application
Ogre Wiki Tutorial Framework
Frequently Asked Questions
Google Summer Of Code
Help Requested
Ogre Core Articles
Community
Community Home
Projects Using Ogre
Recommended Reading
Contractors
Wiki
Immediate Wiki Tasklist
Wiki Ideas
Wiki Guidelines
Article Writing Guidelines
Wiki Styles
Wiki Page Tracker
Ogre Wiki Help
Ogre Wiki Help Overview
Help - Basic Syntax
Help - Images
Help - Pages and Structures
Help - Wiki Plugins
Toolbox
Freetags
Categories
List Pages
Structures
Trackers
Statistics
Rankings
List Galleries
Ogre Lexicon
Comments
History: Terrain Alphasplat Material
View page
Source of version: 3
(current)
{CODE(wrap="1", colors="c++")}material AlphaSplatTerrain { technique { pass { vertex_program_ref AlphaSplatTerrain/VP { param_named_auto worldViewProj worldviewproj_matrix param_named_auto LightDiffuse[0] light_diffuse_colour 0 param_named_auto LightDiffuse[1] light_diffuse_colour 1 param_named_auto LightPosition[0] light_position_object_space 0 param_named_auto LightPosition[1] light_position_object_space 1 param_named_auto LightAttenuation[0] light_attenuation 0 param_named_auto LightAttenuation[1] light_attenuation 1 param_named_auto lightAmbient ambient_light_colour param_named materialDiffuse float4 1.0 1.0 1.0 1.0 param_named materialAmbient float4 0.6 0.6 0.6 1.0 param_named pageSize float 1024 param_named_auto worldMat world_matrix param_named_auto fogSettings fog_params param_named textureTileSize float 10 param_named alpha0TextureCoordAdjust float4 0 1 0 1 param_named alpha1TextureCoordAdjust float4 0 1 0 1 } fragment_program_ref AlphaSplatTerrain/FP { param_named alpha0Mask float4 1 1 1 0 param_named alpha1Mask float4 0 0 0 0 } texture_unit { texture_alias AlphaMap1 tex_address_mode clamp } texture_unit { texture_alias AlphaMap2 tex_address_mode clamp } texture_unit { texture_alias Splat1 filtering anisotropic } texture_unit { texture_alias Splat2 filtering anisotropic } texture_unit { texture_alias Splat3 filtering anisotropic } texture_unit { texture_alias Splat4 tex_address_mode wrap } texture_unit { texture_alias Splat5 tex_address_mode wrap } texture_unit { texture_alias Splat6 tex_address_mode wrap } texture_unit { texture_alias Splat7 tex_address_mode wrap } texture_unit { texture_alias Splat8 tex_address_mode wrap } texture_unit { texture_alias Detail tex_address_mode wrap } } } // Fallback technique technique { pass { shading gouraud texture_unit { texture_alias Fallback } } } } material DemoSplatTerrainShader : AlphaSplatTerrain { set_texture_alias AlphaMap1 alphamap1.png set_texture_alias AlphaMap2 black.png set_texture_alias Splat1 gras.jpg set_texture_alias Splat2 moos2.jpg set_texture_alias Splat3 schlamm_getrocknet1.jpg set_texture_alias Splat4 gras.jpg set_texture_alias Splat5 gras.jpg set_texture_alias Splat6 moos2.jpg set_texture_alias Splat7 schlamm_getrocknet1.jpg set_texture_alias Splat8 gras.jpg set_texture_alias Detail Detail3.jpg set_texture_alias Fallback cooltex.jpg }{CODE}
Search by Tags
Search Wiki by Freetags
Latest Changes
FMOD SoundManager
HDRlib
Building Ogre V2 with CMake
Ogre 2.1 FAQ
Minimal Ogre Collision
Artifex Terra
OpenMB
Advanced Mogre Framework
MogreSocks
Critter AI
...more
Search
Find
Advanced
Search Help
Online Users
40 online users