summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/shadow-map-qml/AdsEffect.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/shadow-map-qml/AdsEffect.qml')
-rw-r--r--examples/qt3d/shadow-map-qml/AdsEffect.qml17
1 files changed, 0 insertions, 17 deletions
diff --git a/examples/qt3d/shadow-map-qml/AdsEffect.qml b/examples/qt3d/shadow-map-qml/AdsEffect.qml
index 4f6910f63..01ca38639 100644
--- a/examples/qt3d/shadow-map-qml/AdsEffect.qml
+++ b/examples/qt3d/shadow-map-qml/AdsEffect.qml
@@ -100,17 +100,6 @@ Effect {
RenderPass {
annotations: [ Annotation { name : "pass"; value : "forward" } ]
- // The bindings property allows us to map from names of parameters (uniforms or vertex attributes)
- // within a shader to more friendly names in QML. By default the parameter names are exposed from
- // the shader so we only need to add add mappings where the names differ. E.g. here we map from the
- // ka uniform name in the shader to a property called ambient
- bindings: [
- // Uniforms (those provided by the user)
- ParameterMapping { parameterName: "ambient"; shaderVariableName: "ka"; bindingType: ParameterMapping.Uniform },
- ParameterMapping { parameterName: "diffuse"; shaderVariableName: "kd"; bindingType: ParameterMapping.Uniform },
- ParameterMapping { parameterName: "specular"; shaderVariableName: "ks"; bindingType: ParameterMapping.Uniform }
- ]
-
shaderProgram: ShaderProgram {
vertexShaderCode: loadSource("qrc:/shaders/ads.vert")
fragmentShaderCode: loadSource("qrc:/shaders/ads.frag")
@@ -145,12 +134,6 @@ Effect {
RenderPass {
annotations: [ Annotation { name : "pass"; value : "forward" } ]
- bindings: [
- ParameterMapping { parameterName: "ambient"; shaderVariableName: "ka"; bindingType: ParameterMapping.Uniform },
- ParameterMapping { parameterName: "diffuse"; shaderVariableName: "kd"; bindingType: ParameterMapping.Uniform },
- ParameterMapping { parameterName: "specular"; shaderVariableName: "ks"; bindingType: ParameterMapping.Uniform }
- ]
-
shaderProgram: ShaderProgram {
vertexShaderCode: loadSource("qrc:/shaders/es3/ads.vert")
fragmentShaderCode: loadSource("qrc:/shaders/es3/ads.frag")