sxrsdk / sxrsdk

Apache License 2.0
16 stars 21 forks source link

Transform and State Sorting Reform #114

Open NolaDonato opened 5 years ago

NolaDonato commented 5 years ago

Added capability to calculate matrices in a general way and put them in a transform block Accumulated state sorting culling and transform code into a new RenderSorter class Custom state sorting for main scene, post effects and shadow maps Eliminated redundant GL state calls Accumulated all render state into a single 64 bit number Store render state in render pass Added transparent flag to ShaderData Added SXRRenderer class

This PR is a revival of GearVRf #1827

SXR DCO signed off by: Nola Donato nola.donato@samsung.com Not for merge yet - Vulkan is not working.

NolaDonato commented 5 years ago

This PR is not ready for testing yet. I have completed the GL work but the Vulkan work has not been done yet. Roshan had a branch in GearVRf which had the Vulkan part working somewhat.

liaxim commented 5 years ago

There is actual build error:

tutorial-lesson4:compileMonoscopicDebugJavaWithJavac FAILED
/home/travis/build/sxrsdk/sxrsdk/demos/sxr-tutorial-lesson4/app/src/main/java/com/samsungxr/balloons/ParticleEmitter.java:227: error: method bindShader in class SXRRenderData cannot be applied to given types;
            sceneObj.getRenderData().bindShader(mScene);
                                    ^
  required: SXRScene,boolean,boolean
  found: SXRScene
  reason: actual and formal argument lists differ in length
1 error