Eevee Specular BSDF shader compile error #85939

Closed
opened 2021-02-24 06:54:09 +01:00 by Abhilash Katta · 9 comments

System Information
Operating system: Windows errorteststone.blend
Graphics card: RTX 2060 (optix on

Blender Version
Broken: 2.93 alpha
Worked: 2.92 beta
The shader doesn't work in 2.93. The same setup produces a pink error shader.(No image textures.) Attached blend file.

Caused by 7f7e683099

Node-setup
image.png

2.92 Output
image.png

2.93 Output
image.png

**System Information** Operating system: Windows [errorteststone.blend](https://archive.blender.org/developer/F9833733/errorteststone.blend) Graphics card: RTX 2060 (optix on **Blender Version** Broken: 2.93 alpha Worked: 2.92 beta The shader doesn't work in 2.93. The same setup produces a pink error shader.(No image textures.) Attached blend file. Caused by 7f7e683099 Node-setup ![image.png](https://archive.blender.org/developer/F9833717/image.png) 2.92 Output ![image.png](https://archive.blender.org/developer/F9833720/image.png) 2.93 Output ![image.png](https://archive.blender.org/developer/F9833726/image.png)
Author

Added subscriber: @abhilashkatta

Added subscriber: @abhilashkatta

#85937 was marked as duplicate of this issue

#85937 was marked as duplicate of this issue
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Can confirm in this file, will check if I can reproduce from scratch.

First note: getting this:

Read blend: 08_Bugtracker_reports/T85939/errorteststone.blend
ERROR (gpu.shader): MAMaterial.004 FragShader: 
      | 
 4751 |     out_Glossy_1.radiance = render_pass_glossy_mask(spec_color, out_Glossy_1.radiance);
      | 
      | Error:  C1503: undefined variable "spec_color"
      | 
 4767 |     vec3 out_emission_radiance = render_pass_emission_mask(emission.rgb);
      | 
      | Error:  C1503: undefined variable "emission"
      | 
 4771 |   float trans = 1.0 - trans;
      | 
      | Error:  C1503: undefined variable "trans"
      | 
 4773 |   result.radiance *= alpha;
      | 
      | Error:  C1503: undefined variable "alpha"
      | 
 4774 |   result.ssr_data.rgb *= alpha;
      | 
      | Error:  C1503: undefined variable "alpha"

ERROR (gpu.shader): MAMaterial.004 FragShader: 
      | 
 4752 |     out_Glossy_1.radiance = render_pass_glossy_mask(spec_color, out_Glossy_1.radiance);
      | 
      | Error:  C1503: undefined variable "spec_color"
      | 
 4768 |     vec3 out_emission_radiance = render_pass_emission_mask(emission.rgb);
      | 
      | Error:  C1503: undefined variable "emission"
      | 
 4772 |   float trans = 1.0 - trans;
      | 
      | Error:  C1503: undefined variable "trans"
      | 
 4774 |   result.radiance *= alpha;
      | 
      | Error:  C1503: undefined variable "alpha"
      | 
 4775 |   result.ssr_data.rgb *= alpha;
      | 
      | Error:  C1503: undefined variable "alpha"
Can confirm in this file, will check if I can reproduce from scratch. First note: getting this: ``` Read blend: 08_Bugtracker_reports/T85939/errorteststone.blend ERROR (gpu.shader): MAMaterial.004 FragShader: | 4751 | out_Glossy_1.radiance = render_pass_glossy_mask(spec_color, out_Glossy_1.radiance); | | Error: C1503: undefined variable "spec_color" | 4767 | vec3 out_emission_radiance = render_pass_emission_mask(emission.rgb); | | Error: C1503: undefined variable "emission" | 4771 | float trans = 1.0 - trans; | | Error: C1503: undefined variable "trans" | 4773 | result.radiance *= alpha; | | Error: C1503: undefined variable "alpha" | 4774 | result.ssr_data.rgb *= alpha; | | Error: C1503: undefined variable "alpha" ERROR (gpu.shader): MAMaterial.004 FragShader: | 4752 | out_Glossy_1.radiance = render_pass_glossy_mask(spec_color, out_Glossy_1.radiance); | | Error: C1503: undefined variable "spec_color" | 4768 | vec3 out_emission_radiance = render_pass_emission_mask(emission.rgb); | | Error: C1503: undefined variable "emission" | 4772 | float trans = 1.0 - trans; | | Error: C1503: undefined variable "trans" | 4774 | result.radiance *= alpha; | | Error: C1503: undefined variable "alpha" | 4775 | result.ssr_data.rgb *= alpha; | | Error: C1503: undefined variable "alpha" ```
Member

Specular BSDF is the culprit.

Can be reproduced by just adding Specular BSDF to a default cube.

Caused by 7f7e683099

Specular BSDF is the culprit. Can be reproduced by just adding Specular BSDF to a default cube. Caused by 7f7e683099
Philipp Oeser changed title from Shader error - glossy/emiss to Eevee Specular BSDF shader compile error 2021-02-24 09:57:53 +01:00

This issue was referenced by 0fe25a6232

This issue was referenced by 0fe25a6232c4f8eacda02e23945ac3d2ad8808ff
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Jeroen Bakker self-assigned this 2021-02-24 10:46:42 +01:00

Added subscribers: @CharlyChive, @rjg

Added subscribers: @CharlyChive, @rjg
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#85939
No description provided.