Skip to content

Commit

Permalink
Merge pull request vZome#917 from vorth/pov-fix
Browse files Browse the repository at this point in the history
Fixed a bug in the POV-Ray exporter
  • Loading branch information
vorth authored Sep 9, 2024
2 parents 44a6a99 + f5126ff commit 0ef54d9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,10 @@ public void doExport( File povFile, Writer writer, int height, int width ) throw
output .println( new String( out .toByteArray() ) );
output .println();

Vector3f dir = new Vector3f();
for ( int i = 0; i<3; i++ ) {
Color color = mLights .getDirectionalLightColor( i );
RealVector rv = mLights .getDirectionalLightVector( i );
Vector3f dir = new Vector3f( rv.x, rv.y, rv.z );
mapViewToWorld( mScene, dir );
output .print( "light_source { -light_distance * " + printTuple3d( new Vector3f( dir ) ) );
output .print( " " );
Expand Down

0 comments on commit 0ef54d9

Please sign in to comment.