Ghost collision improvements (#61)
- flag to disable hull-mesh speculative collision - faster atomics #55 - fix triangle vs hull logic - fix #58 and #59 - improved shadows in samples app, a bit more expensive
This commit is contained in:
parent
52f1a254ad
commit
ef8ef0187a
39 changed files with 16639 additions and 12086 deletions
|
|
@ -93,8 +93,6 @@ void SampleContext::Save()
|
|||
fprintf( file, "{\n" );
|
||||
fprintf( file, " \"sampleIndex\": %d,\n", sampleIndex );
|
||||
fprintf( file, " \"drawShapes\": %s,\n", gd->drawShapes ? "true" : "false" );
|
||||
fprintf( file, " \"drawJoints\": %s,\n", gd->drawJoints ? "true" : "false" );
|
||||
fprintf( file, " \"drawContacts\": %s,\n", gd->drawContacts ? "true" : "false" );
|
||||
fprintf( file, " \"enableShadows\": %s,\n", enableShadows ? "true" : "false" );
|
||||
fprintf( file, " \"enableGtao\": %s,\n", enableGtao ? "true" : "false" );
|
||||
fprintf( file, " \"gtaoQuality\": %d,\n", gtaoQuality );
|
||||
|
|
@ -171,16 +169,6 @@ void SampleContext::Load()
|
|||
const char* s = data + tokens[i + 1].start;
|
||||
GetGuiDraw()->drawShapes = strncmp( s, "true", 4 ) == 0;
|
||||
}
|
||||
else if ( jsoneq( data, &tokens[i], "drawJoints" ) == 0 )
|
||||
{
|
||||
const char* s = data + tokens[i + 1].start;
|
||||
GetGuiDraw()->drawJoints = strncmp( s, "true", 4 ) == 0;
|
||||
}
|
||||
else if ( jsoneq( data, &tokens[i], "drawContacts" ) == 0 )
|
||||
{
|
||||
const char* s = data + tokens[i + 1].start;
|
||||
GetGuiDraw()->drawContacts = strncmp( s, "true", 4 ) == 0;
|
||||
}
|
||||
else if ( jsoneq( data, &tokens[i], "enableShadows" ) == 0 )
|
||||
{
|
||||
const char* s = data + tokens[i + 1].start;
|
||||
|
|
|
|||
Loading…
Reference in a new issue