added

ViroReact 2.52.0 - Unlock Your Creativity with Shaders

Today, we are handing you the keys to the GPU: Full Cross-Platform Custom Shaders are here.

✨ New Features (Shaders & Rendering)

  • Custom Shaders: Added full cross-platform support for custom shaders on iOS and Android.
  • Shader Propagation: Implemented a system for shaders to propagate down the node tree, allowing for complex group effects.
  • Animated Uniforms: Added support for animated shaders via uniform binding.
  • Material Preservation: Material animations are now preserved when applying shader overrides.
  • Lighting Integration: Added support for lighting properties within custom shaders.
  • Texture Handling: Improved texture handling within shader overrides.
  • Fragment Standardization: Standardized fragment output across platforms for consistent rendering.
Shaders in action - one model with different shaders applied

Shaders in action - one model with different shaders applied


🚀 Performance Improvements

  • Performance Throttle: Introduced a throttle mechanism for performance optimization.
  • Material Sharing: Enabled material sharing across instances to reduce memory overhead and improve draw calls.

🐛 Bug Fixes

  • Critical Stability: Continued to eliminate memory leaks on iOS (affecting both viro and virocore).
  • Critical Stability: Fixed a crash occurring when unmounting Portals on iOS.
  • Android Types: Fixed an Android crash caused by an incorrect gravity type definition (corrected to 3D vector [number, number, number]).
  • Memory Safety: Fixed a material cloning array overflow that was causing crashes.
  • Asset Loading: Resolved issues with VRX asset loading.
  • Depth Alignment: Fixed frame alignment issues with monocular depth.
  • Anchors: Resolved a "Double anchor reference creation" bug.
  • Hit Testing: Fixed hitResultId availability in AR hit tests.
  • Threading: Resolved thread lock issues through extensive refactoring.

🔧 Changes

  • Depth Logic: Improved depth integration logic for simplified implementation.

Need Help?

If you're looking for support getting started or want an expert to help you build a comprehensive AR or VR application, look no further than our community Discord and our trusted experts.

Join the ReactVision Discord →

Hire an Expert →