Updating the RenderBox library
With the Solar System project implemented and our code stabilized, you might realize that we've built some code that is not necessarily specific to this application, which can be reused in other projects, and ought to make its way back to the RenderBox
library. That's what we'll do now.
We recommend you do this directly within Android Studio, selecting and copying from this project's hierarchy view to the other's. Perform the following steps:
Move all the
.shader
files from the Solar System'sres/raw/
directory into theres/raw/
directory of theRenderBox
lib'sRenderBox
module. If you've been following along, there will be eight files for the vertex and fragment.shader
files forday_night
,diffuse_lighting
,solid_color_lighting
, andunilt_tex
.Move all the
Component
andMaterial
.java
files from the Solar System'sRenderBoxExt
module folder to the corresponding folders inRenderBox
lib'sRenderBox
module. Remove all invalid references toMainActivity
in the...