OgreShaderFFPRenderState.h
Go to the documentation of this file.
1/*
2-----------------------------------------------------------------------------
3This source file is part of OGRE
4(Object-oriented Graphics Rendering Engine)
5For the latest info, see http://www.ogre3d.org
6
7Copyright (c) 2000-2013 Torus Knot Software Ltd
8Permission is hereby granted, free of charge, to any person obtaining a copy
9of this software and associated documentation files (the "Software"), to deal
10in the Software without restriction, including without limitation the rights
11to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12copies of the Software, and to permit persons to whom the Software is
13furnished to do so, subject to the following conditions:
14
15The above copyright notice and this permission notice shall be included in
16all copies or substantial portions of the Software.
17
18THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24THE SOFTWARE.
25-----------------------------------------------------------------------------
26*/
27#ifndef _ShaderFFPState_
28#define _ShaderFFPState_
29
31
32namespace Ogre {
33namespace RTShader {
34
42// Fixed Function vertex shader stages.
44{
50 FFP_VS_FOG = 500,
52};
53
54// Fixed Function fragment shader stages.
56{
64};
65
66// Fixed Function generic stages.
68{
71 FFP_COLOUR = 200,
74 FFP_FOG = 500,
76};
77
78// Fixed Function Library: Common functions
79#define FFP_LIB_COMMON "FFPLib_Common"
80#define FFP_FUNC_ASSIGN "FFP_Assign"
81#define FFP_FUNC_CONSTRUCT "FFP_Construct"
82#define FFP_FUNC_MODULATE "FFP_Modulate"
83#define FFP_FUNC_ADD "FFP_Add"
84#define FFP_FUNC_SUBTRACT "FFP_Subtract"
85#define FFP_FUNC_LERP "FFP_Lerp"
86#define FFP_FUNC_DOTPRODUCT "FFP_DotProduct"
87#define FFP_FUNC_NORMALIZE "FFP_Normalize"
88
89// Fixed Function Library: Transform functions
90#define FFP_LIB_TRANSFORM "FFPLib_Transform"
91#define FFP_FUNC_TRANSFORM "FFP_Transform"
92
93// Fixed Function Library: Lighting functions
94#define FFP_LIB_LIGHTING "FFPLib_Lighting"
95#define FFP_FUNC_LIGHT_DIRECTIONAL_DIFFUSE "FFP_Light_Directional_Diffuse"
96#define FFP_FUNC_LIGHT_DIRECTIONAL_DIFFUSESPECULAR "FFP_Light_Directional_DiffuseSpecular"
97#define FFP_FUNC_LIGHT_POINT_DIFFUSE "FFP_Light_Point_Diffuse"
98#define FFP_FUNC_LIGHT_POINT_DIFFUSESPECULAR "FFP_Light_Point_DiffuseSpecular"
99#define FFP_FUNC_LIGHT_SPOT_DIFFUSE "FFP_Light_Spot_Diffuse"
100#define FFP_FUNC_LIGHT_SPOT_DIFFUSESPECULAR "FFP_Light_Spot_DiffuseSpecular"
101
102// Fixed Function Library: Texturing functions
103#define FFP_LIB_TEXTURING "FFPLib_Texturing"
104#define FFP_FUNC_TRANSFORM_TEXCOORD "FFP_TransformTexCoord"
105#define FFP_FUNC_GENERATE_TEXCOORD_ENV_NORMAL "FFP_GenerateTexCoord_EnvMap_Normal"
106#define FFP_FUNC_GENERATE_TEXCOORD_ENV_SPHERE "FFP_GenerateTexCoord_EnvMap_Sphere"
107#define FFP_FUNC_GENERATE_TEXCOORD_ENV_REFLECT "FFP_GenerateTexCoord_EnvMap_Reflect"
108#define FFP_FUNC_GENERATE_TEXCOORD_PROJECTION "FFP_GenerateTexCoord_Projection"
109#define FFP_FUNC_SAMPLE_TEXTURE "FFP_SampleTexture"
110#define FFP_FUNC_SAMPLE_TEXTURE_PROJ "FFP_SampleTextureProj"
111#define FFP_FUNC_MODULATEX2 "FFP_ModulateX2"
112#define FFP_FUNC_MODULATEX4 "FFP_ModulateX4"
113#define FFP_FUNC_ADDSIGNED "FFP_AddSigned"
114#define FFP_FUNC_ADDSMOOTH "FFP_AddSmooth"
115
116// Fixed Function Library: Fog functions
117#define FFP_LIB_FOG "FFPLib_Fog"
118#define FFP_FUNC_VERTEXFOG_LINEAR "FFP_VertexFog_Linear"
119#define FFP_FUNC_VERTEXFOG_EXP "FFP_VertexFog_Exp"
120#define FFP_FUNC_VERTEXFOG_EXP2 "FFP_VertexFog_Exp2"
121#define FFP_FUNC_PIXELFOG_DEPTH "FFP_PixelFog_Depth"
122#define FFP_FUNC_PIXELFOG_LINEAR "FFP_PixelFog_Linear"
123#define FFP_FUNC_PIXELFOG_EXP "FFP_PixelFog_Exp"
124#define FFP_FUNC_PIXELFOG_EXP2 "FFP_PixelFog_Exp2"
125
126
130}
131}
132
133#endif
134

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.