A Convolutional Neural Deferred Shader for Physics Based Rendering

Zhuo He, Yingdong Ru, Qianying Liu, Paul Henderson, Nicolas PugeaultarXiv 2025 · DOI

Introduction

Achieving photorealism in real-time rendering remains a significant challenge, particularly when dealing with complex real-world materials and dynamic lighting. While classical physics-based rendering (PBR) models like Blinn-Phong or GGX provide a solid foundation, they often struggle to capture the intricate nuances of real-world objects due to the difficulty of acquiring precise material properties such as exact roughness or specular maps.

In response, "neural rendering" has emerged as a transformative approach, learning the rendering equation directly from data. However, early neural shaders, such as Neural Deferred Shading (NDS), relied heavily on pixel-wise Multilayer Perceptrons (MLPs). These architectures are computationally expensive, slow to train, and lack the spatial awareness necessary for high-quality generalization. Furthermore, they frequently suffer from a "darkness problem," where the model fails to predict true black in the absence of light, instead producing faint artifacts. This paper introduces pbnds+, a convolutional neural deferred shader designed to overcome these limitations through an efficient UNet-based architecture and a novel energy regularization technique.

Methodology: The pbnds+ Architecture

The core innovation of pbnds+ is the transition from dense MLPs to a Convolutional Neural Network (CNN) pipeline. By leveraging spatial context, the model achieves superior rendering quality with significantly fewer parameters.

CNN-Based Deferred Shading

The system utilizes a UNet-like architecture composed of an encoding stage and a decoding stage. The input consists of G-Buffer data—including albedo (A), normals (N), specular (S), roughness (R), and depth (D)—alongside Image-Based Lighting (IBL) maps. To handle the high-dimensional input, the model employs "ResConvBlocks" (Residual Convolutional Blocks), which integrate Group Normalization (GRNorm) and $1 \times 1$ or $3 \times 3$ convolutions to process features efficiently.

The pbnds+ architecture features a UNet-style encoder-decoder structure with specialized Residual Convolutional Blocks (RC Blocks) to process G-Buffer and lighting data.

The architecture treats the G-Buffer as a multi-channel feature map. By combining batch and light dimensions during processing, the CNN can regress shading results across the entire image simultaneously, rather than pixel-by-pixel, leading to faster inference and better spatial consistency.

Energy Regularization

To address the "darkness problem," the researchers introduced a stochastic training mechanism called energy regularization. During training, a Bernoulli gate occasionally replaces the input HDRI map with an all-zero "dark" map. A specific loss function, $L_{zero}$, is then applied to penalize any non-zero output from the network. This forces the model to respect the physical law that zero incident light must result in zero radiance, preventing the "hallucination" of light in shadowed or unlit regions.

Experimental Setup

The model was trained and evaluated on two high-quality human facial datasets augmented with physically-based rendering (PBR) textures: FFHQ-PBR (derived from Flickr-Faces-HQ) and CelebaA-PBR. These datasets provide the necessary ground truth for materials and lighting, allowing the shader to learn the complex mapping from raw geometry and light maps to photorealistic RGB images.

Results and Discussion

The performance of pbnds+ was benchmarked against classical models, state-of-the-art (SOTA) neural shaders, and recent diffusion-based relighting methods.

Quantitative Performance

On the FFHQ-PBR dataset, pbnds+ demonstrated clear superiority in perceptual quality. It achieved an LPIPS score of 0.0305, a significant improvement over the original PBNDS (0.0444) and the classical GGX model (0.2895). In relighting tasks, where the model must render a face under a completely new environment map, pbnds+ achieved a leading FID score of 0.0868, outperforming the diffusion-based Neural Gaffer (0.1044).

Qualitative Comparison

Visually, pbnds+ produces images that are remarkably close to the ground truth. As shown in the comparison below, classical models often produce overly simplified or "plastic" looks, while previous neural methods may struggle with high-frequency details or shadow accuracy.

Qualitative comparison of pbnds+ against classical models (Blinn-Phong, GGX) and other neural methods. pbnds+ shows superior fidelity to the ground truth (GT) across various lighting conditions.

The model excels at capturing fine details in shadowed regions and avoids the "hard shadow" artifacts typical of generative relighting approaches. The energy regularization ensures that high-contrast scenes maintain deep, realistic blacks without artificial glow.

Conclusion and Future Work

The pbnds+ framework represents a significant advancement in neural deferred shading. By replacing MLPs with a spatially-aware CNN and introducing energy regularization, the authors have created a shader that is both more efficient and more physically grounded than its predecessors.

Despite these gains, challenges remain in handling complex light transport phenomena. Current limitations include the lack of explicit modeling for volumetric scattering (crucial for realistic skin rendering) and refraction in transparent materials. Future research will focus on incorporating these effects to develop a truly universal neural shader capable of rendering any material under any lighting condition with absolute fidelity.

Summary updated

BibTeX
@misc{he2025convolutional,
  author = {Zhuo He and Yingdong Ru and Qianying Liu and Paul Henderson and Nicolas Pugeault},
  title = {{A Convolutional Neural Deferred Shader for Physics Based Rendering}},
  year = {2025},
  eprint = {2512.19522},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.19522},
}
Figure