@@ -82,66 +82,22 @@ class ShaderExInstancedViewports : public SubRenderState
82
82
83
83
/* * Set the monitors count. */
84
84
void setMonitorsCount (const Vector2 monitorsCount);
85
-
86
- /* * Return the monitors count. */
87
- Vector2 getMonitorsCount () const { return mMonitorsCount ; }
85
+
86
+ void setParameter (const String& name, const Any& value) override ;
88
87
89
88
static String Type;
90
89
91
90
// Protected methods.
92
91
protected:
93
-
92
+ bool createCpuSubPrograms (ProgramSet* programSet) override ;
94
93
95
- /* *
96
- @see SubRenderState::resolveParameters.
97
- */
98
- bool resolveParameters (ProgramSet* programSet) override ;
94
+ UniformParameterPtr mPSInMonitorsCount ;
95
+ UniformParameterPtr mVSInMatrixArray ;
99
96
100
- /* *
101
- @see SubRenderState::resolveDependencies.
102
- */
103
- bool resolveDependencies (ProgramSet* programSet) override ;
104
-
105
- /* *
106
- @see SubRenderState::addFunctionInvocations.
107
- */
108
- bool addFunctionInvocations (ProgramSet* programSet) override ;
109
-
110
- /* *
111
- Internal method that adds related vertex shader functions invocations.
112
- */
113
- bool addVSInvocations (Function* vsMain, const int groupOrder);
114
-
115
-
116
- /* *
117
- Internal method that adds related pixel shader functions invocations.
118
- */
119
- bool addPSInvocations (Function* psMain, const int groupOrder);
120
-
121
-
122
- // Attributes.
123
- protected:
124
- ParameterPtr mVSInPosition ; // Vertex shader original input position in projective space.
125
- ParameterPtr mVSOriginalOutPositionProjectiveSpace ; // Vertex shader original output position in projective space.
126
- ParameterPtr mVSOutPositionProjectiveSpace ; // Vertex shader output texcord position in projective space.
127
- ParameterPtr mPSInPositionProjectiveSpace ; // Pixel shader input position in projective space.
128
- UniformParameterPtr mVSInMonitorsCount ; // Vertex shader uniform monitors count.
129
- UniformParameterPtr mPSInMonitorsCount ; // Pixel shader uniform monitors count.
130
- ParameterPtr mVSInMonitorIndex ; // Vertex shader uniform monitor index.
131
- ParameterPtr mVSOutMonitorIndex ; // Vertex shader output monitor index.
132
- ParameterPtr mPSInMonitorIndex ; // Pixel shader input monitor index.
133
-
134
- ParameterPtr mVSInViewportOffsetMatrixR0 ;
135
- ParameterPtr mVSInViewportOffsetMatrixR1 ;
136
- ParameterPtr mVSInViewportOffsetMatrixR2 ;
137
- ParameterPtr mVSInViewportOffsetMatrixR3 ;
138
-
139
- UniformParameterPtr mWorldViewMatrix ; // world & view parameter.
140
- UniformParameterPtr mProjectionMatrix ; // projection parameter.
141
-
142
- Vector2 mMonitorsCount ;
97
+ Vector2 mViewportGrid ;
143
98
bool mMonitorsCountChanged ;
144
99
100
+ std::vector<Camera*> mCameras ;
145
101
};
146
102
147
103
0 commit comments