00001 /* 00002 ----------------------------------------------------------------------------- 00003 This source file is part of OGRE 00004 (Object-oriented Graphics Rendering Engine) 00005 For the latest info, see http://www.ogre3d.org 00006 00007 Copyright (c) 2000-2012 Torus Knot Software Ltd 00008 Permission is hereby granted, free of charge, to any person obtaining a copy 00009 of this software and associated documentation files (the "Software"), to deal 00010 in the Software without restriction, including without limitation the rights 00011 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00012 copies of the Software, and to permit persons to whom the Software is 00013 furnished to do so, subject to the following conditions: 00014 00015 The above copyright notice and this permission notice shall be included in 00016 all copies or substantial portions of the Software. 00017 00018 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00019 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00020 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00021 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00022 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00023 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 00024 THE SOFTWARE. 00025 ----------------------------------------------------------------------------- 00026 */ 00027 #ifndef _ShaderFFPState_ 00028 #define _ShaderFFPState_ 00029 00030 #include "OgreShaderPrerequisites.h" 00031 00032 namespace Ogre { 00033 namespace RTShader { 00034 00042 // Fixed Function vertex shader stages. 00043 enum FFPVertexShaderStage 00044 { 00045 FFP_VS_PRE_PROCESS = 0, 00046 FFP_VS_TRANSFORM = 100, 00047 FFP_VS_COLOUR = 200, 00048 FFP_VS_LIGHTING = 300, 00049 FFP_VS_TEXTURING = 400, 00050 FFP_VS_FOG = 500, 00051 FFP_VS_POST_PROCESS = 2000 00052 }; 00053 00054 // Fixed Function fragment shader stages. 00055 enum FFPFragmentShaderStage 00056 { 00057 FFP_PS_PRE_PROCESS = 0, 00058 FFP_PS_COLOUR_BEGIN = 100, 00059 FFP_PS_SAMPLING = 150, 00060 FFP_PS_TEXTURING = 200, 00061 FFP_PS_COLOUR_END = 300, 00062 FFP_PS_FOG = 400, 00063 FFP_PS_POST_PROCESS = 500 00064 }; 00065 00066 // Fixed Function generic stages. 00067 enum FFPShaderStage 00068 { 00069 FFP_PRE_PROCESS = 0, 00070 FFP_TRANSFORM = 100, 00071 FFP_COLOUR = 200, 00072 FFP_LIGHTING = 300, 00073 FFP_TEXTURING = 400, 00074 FFP_FOG = 500, 00075 FFP_POST_PROCESS = 600 00076 }; 00077 00078 // Fixed Function Library: Common functions 00079 #define FFP_LIB_COMMON "FFPLib_Common" 00080 #define FFP_FUNC_ASSIGN "FFP_Assign" 00081 #define FFP_FUNC_CONSTRUCT "FFP_Construct" 00082 #define FFP_FUNC_MODULATE "FFP_Modulate" 00083 #define FFP_FUNC_ADD "FFP_Add" 00084 #define FFP_FUNC_SUBTRACT "FFP_Subtract" 00085 #define FFP_FUNC_LERP "FFP_Lerp" 00086 #define FFP_FUNC_DOTPRODUCT "FFP_DotProduct" 00087 #define FFP_FUNC_NORMALIZE "FFP_Normalize" 00088 00089 // Fixed Function Library: Transform functions 00090 #define FFP_LIB_TRANSFORM "FFPLib_Transform" 00091 #define FFP_FUNC_TRANSFORM "FFP_Transform" 00092 00093 // Fixed Function Library: Lighting functions 00094 #define FFP_LIB_LIGHTING "FFPLib_Lighting" 00095 #define FFP_FUNC_LIGHT_DIRECTIONAL_DIFFUSE "FFP_Light_Directional_Diffuse" 00096 #define FFP_FUNC_LIGHT_DIRECTIONAL_DIFFUSESPECULAR "FFP_Light_Directional_DiffuseSpecular" 00097 #define FFP_FUNC_LIGHT_POINT_DIFFUSE "FFP_Light_Point_Diffuse" 00098 #define FFP_FUNC_LIGHT_POINT_DIFFUSESPECULAR "FFP_Light_Point_DiffuseSpecular" 00099 #define FFP_FUNC_LIGHT_SPOT_DIFFUSE "FFP_Light_Spot_Diffuse" 00100 #define FFP_FUNC_LIGHT_SPOT_DIFFUSESPECULAR "FFP_Light_Spot_DiffuseSpecular" 00101 00102 // Fixed Function Library: Texturing functions 00103 #define FFP_LIB_TEXTURING "FFPLib_Texturing" 00104 #define FFP_FUNC_TRANSFORM_TEXCOORD "FFP_TransformTexCoord" 00105 #define FFP_FUNC_GENERATE_TEXCOORD_ENV_NORMAL "FFP_GenerateTexCoord_EnvMap_Normal" 00106 #define FFP_FUNC_GENERATE_TEXCOORD_ENV_SPHERE "FFP_GenerateTexCoord_EnvMap_Sphere" 00107 #define FFP_FUNC_GENERATE_TEXCOORD_ENV_REFLECT "FFP_GenerateTexCoord_EnvMap_Reflect" 00108 #define FFP_FUNC_GENERATE_TEXCOORD_PROJECTION "FFP_GenerateTexCoord_Projection" 00109 #define FFP_FUNC_SAMPLE_TEXTURE "FFP_SampleTexture" 00110 #define FFP_FUNC_SAMPLE_TEXTURE_PROJ "FFP_SampleTextureProj" 00111 #define FFP_FUNC_MODULATEX2 "FFP_ModulateX2" 00112 #define FFP_FUNC_MODULATEX4 "FFP_ModulateX4" 00113 #define FFP_FUNC_ADDSIGNED "FFP_AddSigned" 00114 #define FFP_FUNC_ADDSMOOTH "FFP_AddSmooth" 00115 00116 // Fixed Function Library: Fog functions 00117 #define FFP_LIB_FOG "FFPLib_Fog" 00118 #define FFP_FUNC_VERTEXFOG_LINEAR "FFP_VertexFog_Linear" 00119 #define FFP_FUNC_VERTEXFOG_EXP "FFP_VertexFog_Exp" 00120 #define FFP_FUNC_VERTEXFOG_EXP2 "FFP_VertexFog_Exp2" 00121 #define FFP_FUNC_PIXELFOG_DEPTH "FFP_PixelFog_Depth" 00122 #define FFP_FUNC_PIXELFOG_LINEAR "FFP_PixelFog_Linear" 00123 #define FFP_FUNC_PIXELFOG_EXP "FFP_PixelFog_Exp" 00124 #define FFP_FUNC_PIXELFOG_EXP2 "FFP_PixelFog_Exp2" 00125 00126 00130 } 00131 } 00132 00133 #endif 00134
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:36:26 2012