summaryrefslogtreecommitdiffstats
path: root/src/quick3d/imports/render/defaults/qml/PerVertexColorMaterial.qml
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-12-01 13:34:41 +0100
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-12-02 10:40:16 +0000
commitff67c813fcd377d704bcb9d37b03546797be6193 (patch)
tree183751b99ebcc90cf680d19cef55b9b63dac2b88 /src/quick3d/imports/render/defaults/qml/PerVertexColorMaterial.qml
parente81795101cad74a70599915028045b11f2763e3a (diff)
Migrate PerVertexMaterial to be light-aware
The original version has no specular component so leave that out in this version as well. To make this simple, introduce adModel(). Change-Id: I474485a19163ec55e6f6e025d94d8172297e847c Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
Diffstat (limited to 'src/quick3d/imports/render/defaults/qml/PerVertexColorMaterial.qml')
-rw-r--r--src/quick3d/imports/render/defaults/qml/PerVertexColorMaterial.qml5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/quick3d/imports/render/defaults/qml/PerVertexColorMaterial.qml b/src/quick3d/imports/render/defaults/qml/PerVertexColorMaterial.qml
index de5cda4b4..8d41a5043 100644
--- a/src/quick3d/imports/render/defaults/qml/PerVertexColorMaterial.qml
+++ b/src/quick3d/imports/render/defaults/qml/PerVertexColorMaterial.qml
@@ -40,11 +40,6 @@ import Qt3D.Render 2.0
Material {
id:root
- parameters: [
- Parameter { name: "lightPosition"; value: Qt.vector4d(1.0, 1.0, 0.0, 1.0) },
- Parameter { name: "lightIntensity"; value: Qt.vector3d(1.0, 1.0, 1.0) }
- ]
-
ShaderProgram {
id: gl3PerVertexColorShader
vertexShaderCode: loadSource("qrc:/shaders/gl3/pervertexcolor.vert")