View source
From Iris2
for
How to write a Material File
Jump to:
navigation
,
search
Material Templates // see http://www.ogre3d.org/docs/manual/manual_28.html#SEC145 // can be used by // import * from "material-templates.material" // --------------- THESE ARE THE ATLAS STANDARD MATERIALS ---------------------- // MESH BASE MATERIAL TEMPLATE material atlas_base { receive_shadows off technique default { pass { lighting on ambient vertexcolour diffuse vertexcolour texture_unit MainTexture { filtering anisotropic max_anisotropy 8 texture checker.png texture_alias MainTexture tex_address_mode clamp } } } } // MESH BASE ALPHA MATERIAL TEMPLATE material atlas_base_alpha : atlas_base { technique default { pass Decal { lighting on ambient vertexcolour diffuse vertexcolour alpha_rejection greater_equal 128 alpha_to_coverage on } } } // --------------- THESE ARE THE STANDARD NON-ATLAS MATERIALS ---------------------- material diffuse_template { receive_shadows off technique default { pass Decal { lighting on ambient vertexcolour diffuse vertexcolour texture_unit { filtering anisotropic max_anisotropy 8 texture checker.png texture_alias diffuse_tex tex_address_mode clamp } } } } // MESH BASE ALPHA MATERIAL TEMPLATE material diffuse_template_alpha : diffuse_template { technique default { pass Decal { lighting on ambient vertexcolour diffuse vertexcolour alpha_rejection greater_equal 128 alpha_to_coverage on } } } material diffuse_template_foliage : diffuse_template { technique default { pass Decal { lighting on ambient vertexcolour diffuse vertexcolour cull_hardware none cull_software none alpha_rejection greater_equal 128 alpha_to_coverage on texture_unit { filtering anisotropic max_anisotropy 8 texture checker.png texture_alias diffuse_tex tex_address_mode wrap } } } } material diffuse_template_sceneblend : diffuse_template { technique default { pass Decal { lighting on ambient vertexcolour diffuse vertexcolour cull_hardware none cull_software none scene_blend alpha_blend depth_write off depth_check on } } }
Return to
How to write a Material File
.
Views
Page
Discussion
View source
History
Personal tools
Log in
main
Main Page
Screenshots
download
Install Guide
Forum
FAQ
Macros
Credits
dev
Developer Blog
A Guide for Artists
Development
Item Model List
Iris-Testshard
Bugreports
SvnLog
API C++
API Lua
wiki
Recent changes
Random page
Help
Search
Toolbox
What links here
Related changes
Special pages