mirror of https://github.com/bkaradzic/bgfx
Fixed geometryc arguments.
This commit is contained in:
parent
e369e75806
commit
cedfee113d
|
@ -27,7 +27,7 @@ void main()
|
|||
|
||||
vec3 viewNormal = normalize(mul(u_view, vec4(wnormal, 0.0) ).xyz);
|
||||
vec3 viewTangent = normalize(mul(u_view, vec4(wtangent, 0.0) ).xyz);
|
||||
vec3 viewBitangent = cross(viewNormal, viewTangent) * a_tangent.w;
|
||||
vec3 viewBitangent = cross(viewNormal, viewTangent) * tangent.w;
|
||||
mat3 tbn = mat3(viewTangent, viewBitangent, viewNormal);
|
||||
|
||||
v_wpos = wpos;
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -377,7 +377,7 @@ int main(int _argc, const char* _argv[])
|
|||
cmdLine.hasArg(packNormal, '\0', "packnormal");
|
||||
|
||||
uint32_t packUv = 0;
|
||||
cmdLine.hasArg(packNormal, '\0', "packuv");
|
||||
cmdLine.hasArg(packUv, '\0', "packuv");
|
||||
|
||||
bool ccw = cmdLine.hasArg("ccw");
|
||||
bool flipV = cmdLine.hasArg("flipv");
|
||||
|
@ -710,7 +710,7 @@ int main(int _argc, const char* _argv[])
|
|||
decl.add(bgfx::Attrib::Normal, 3, bgfx::AttribType::Float);
|
||||
if (hasTangent)
|
||||
{
|
||||
decl.add(bgfx::Attrib::Tangent, 3, bgfx::AttribType::Float);
|
||||
decl.add(bgfx::Attrib::Tangent, 4, bgfx::AttribType::Float);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue