Merge pull request #393 from ChrisMickelson/unstable_current
Fix for issue #383
This commit is contained in:
commit
de7f7b308b
@ -197,17 +197,24 @@ public abstract class RocketRenderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void renderTree( GL2 gl, final Collection<Geometry> geometryList){
|
private void renderTree( GL2 gl, final Collection<Geometry> geometryList){
|
||||||
|
//cycle through opaque components first, then transparent to preserve proper depth testing
|
||||||
for(Geometry geom: geometryList ) {
|
for(Geometry geom: geometryList ) {
|
||||||
if( geom.active ) {
|
if( geom.active ) {
|
||||||
if( isDrawnTransparent( (RocketComponent)geom.obj) ){
|
//if not transparent
|
||||||
// Draw T&T front faces blended, without depth test
|
if( !isDrawnTransparent( (RocketComponent)geom.obj) ){
|
||||||
renderComponent(gl, geom, 0.2f);
|
renderComponent(gl, geom, 1.0f);
|
||||||
}else{
|
}
|
||||||
renderComponent(gl, geom, 1.0f);
|
}
|
||||||
|
}
|
||||||
|
for(Geometry geom: geometryList ) {
|
||||||
|
if( geom.active ) {
|
||||||
|
if( isDrawnTransparent( (RocketComponent)geom.obj) ){
|
||||||
|
// Draw T&T front faces blended, without depth test
|
||||||
|
renderComponent(gl, geom, 0.2f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private void renderMotors(GL2 gl, FlightConfiguration configuration) {
|
private void renderMotors(GL2 gl, FlightConfiguration configuration) {
|
||||||
// FlightConfigurationId motorID = configuration.getFlightConfigurationID();
|
// FlightConfigurationId motorID = configuration.getFlightConfigurationID();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user