ui allows to enable/disable the deformer componenets

This commit is contained in:
sam gateau 2018-09-21 16:45:21 -07:00
parent aa02dcb087
commit d8984dafa0
3 changed files with 10 additions and 31 deletions

View file

@ -152,7 +152,6 @@ class MakeLightingModelConfig : public render::Job::Config {
Q_PROPERTY(bool enableSkinning MEMBER enableSkinning NOTIFY dirty)
Q_PROPERTY(bool enableBlendshape MEMBER enableBlendshape NOTIFY dirty)
public:
MakeLightingModelConfig() : render::Job::Config() {} // Make Lighting Model is always on
@ -178,7 +177,6 @@ public:
bool enableWireframe { false }; // false by default
bool enableHaze{ true };
bool enableBloom{ true };
bool enableSkinning{ true };
bool enableBlendshape{ true };

View file

@ -49,15 +49,6 @@ void evalMeshDeformer(vec4 inPosition, out vec4 outPosition
<@endif@>
<@if USE_BLENDSHAPE@>
/*
vec4 _deformedPosition = vec4(0.0, 0.0, 0.0, 0.0);
<@if USE_NORMAL@>
vec3 _deformedNormal = vec3(0.0, 0.0, 0.0);
<@endif@>
<@if USE_TANGENT@>
vec3 _deformedTangent = vec3(0.0, 0.0, 0.0);
<@endif@>
*/
if (isBlendshapeEnabled()) {
<@if USE_TANGENT@>
@ -69,17 +60,7 @@ void evalMeshDeformer(vec4 inPosition, out vec4 outPosition
applyBlendshapeOffset(vertexIndex, inPosition, _deformedPosition);
<@endif@>
<@endif@>
}/* else {
vec4 _deformedPosition = inPosition;
<@if USE_NORMAL@>
vec3 _deformedNormal = inNormal;
<@endif@>
<@if USE_TANGENT@>
vec3 _deformedTangent = inTangent;
<@endif@>
}*/
}
<@endif@>
<@if USE_SKINNING@>

View file

@ -71,7 +71,7 @@ Rectangle {
"Specular:LightingModel:enableSpecular",
"Albedo:LightingModel:enableAlbedo",
"Wireframe:LightingModel:enableWireframe",
"Skinning:LightingModel:enableSkinnning",
"Skinning:LightingModel:enableSkinning",
"Blendshape:LightingModel:enableBlendshape"
]
HifiControls.CheckBox {