Unleash Your Creativity: Custom Shaders Arrive in ViroReact 2.52.0

I am so excited to finally share something that the team has been working on since the start of the year and is finally coming to our community today in ViroReact 2.52.0. While every release brings improvements, this one marks a fundamental shift in what you can visually achieve with the ViroReact library.
Today, we are handing you the keys to the GPU: Full Cross-Platform Custom Shaders are here.

The Power of Shaders: A New Dimension of Visuals
If you are new to graphics programming, you might be asking: What exactly are shaders?
Simply put, shaders are small programs that run on the GPU (Graphics Processing Unit). They determine how every pixel of your 3D objects is rendered on the screen. Until now, ViroReact handled this for you with standard lighting and material models. Those look great, but they have limits.
With custom shaders, you are no longer limited to standard plastic or metallic looks. You can mathematically manipulate light, color, and geometry in real-time.
Why is this a big deal for AR & VR? In immersive development, “selling” the illusion is everything. Shaders allow you to:
- Create Impossible Materials: Think rippling water, flowing lava, or holographic glitches.
- Visual Effects (VFX): Make objects dissolve into particles, glow with radioactive energy, or pulse to music.
- Stylized Rendering: Move away from realism and build apps that look like hand-drawn cartoons or cel-shaded anime.
Under the Hood of 2.52.0
We didn’t just bolt this feature on; we integrated it deeply into ViroCore.
- Cross-Platform: Write once, run everywhere. The new system standardizes fragment output so your effects look consistent on both iOS and Android now and are ready for future platform expansion.
- Animated & Dynamic: We added uniform binding support, meaning you can animate shader properties (like the speed of a water ripple) directly from your React code.
- Lighting Aware: Your custom shaders can still interact with Viro’s lighting system, ensuring your custom effects sit perfectly within your AR scene’s lighting environment.
Stability & Performance
While Shaders are the star of the show, 2.52.0 is also one of our most stable releases to date. We have continued to eliminate critical iOS memory leaks, we’ve fixed the portal unmounting crashes, and resolved issues for VRX rendering on iOS.
Dive into the full list of changes below to see exactly what has been fixed and improved.
Need Help?
Looking for support getting started with ViroReact 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.