ProwlEngine / Prowl

An Open Source C# 3D Game Engine under MIT license, inspired by Unity and featuring a complete editor and built on Silk.NET
MIT License
328 stars 27 forks source link

[Rendering] Mac OS Rendering is wack. EditorGUI + Runtime Renderer #117

Closed PaperPrototype closed 4 months ago

PaperPrototype commented 4 months ago

Describe the bug Everything is black in the scene. The Editor GUI is green.

To Reproduce Steps to reproduce the behavior:

  1. Run Prowl on MacOS

Expected behavior I have no idea.

Screenshots

Screenshot 2024-03-30 at 3 37 52 PM

Additional context DEBUG CONSOLE OUTPUT

EERROR: 0:194: Use of undeclared identifier 'color'
ERROR: 0:196: Invalid call of undeclared identifier 'texture2D'
ERROR: 0:197: Use of undeclared identifier 'viewPosAndRough'
ERROR: 0:199: Use of undeclared identifier 'smoothness'
ERROR: 0:201: Invalid call of undeclared identifier 'texture2D'
ERROR: 0:202: Use of undeclared identifier 'normalAndMetallic'
ERROR: 0:203: Use of undeclared identifier 'normalAndMetallic'
2
ERROR: 0:208: Use of undeclared identifier 'normal'
ERROR: 0:208: Use of undeclared identifier 'viewPosAndRough'
ERROR: 0:213: Use of undeclared identifier 'metallic'
ERROR: 0:217: Use of undeclared identifier 'color'
ERROR: 0:217: Use of undeclared identifier 'metallic'
ERROR: 0:218: Use of undeclared identifier 'normal'
ERROR: 0:222: Use of undeclared identifier 'normal'
ERROR: 0:223: Use of undeclared identifier 'SSRCoord'
ERROR: 0:225: Use of undeclared identifier 'isMetal'
ERROR: 0:225: Use of undeclared identifier 'smoothness'
ERROR: 0:225: Use of undeclared identifier 'fresnel'
ERROR: 0:226: Use of undeclared identifier 'SSRCoord'
ERROR: 0:226: Use of undeclared identifier 'fresnel'
2

Status Code: 0
Exception thrown: 'System.InvalidOperationException' in Prowl.Runtime.dll
Failed to Compile Fragment Shader Source.
ERROR: 0:31: Invalid call of undeclared identifier 'texture2D'
ERROR: 0:62: Invalid call of undeclared identifier 'texture2D'
ERROR: 0:77: Invalid call of undeclared identifier 'texture2D'
ERROR: 0:79: Use of undeclared identifier 'curDepth'
ERROR: 0:82: Use of undeclared identifier 'curDepth'
ERROR: 0:83: Use of undeclared identifier 'curDepth'
2

Status Code: 0
Exception thrown: 'System.InvalidOperationException' in Prowl.Runtime.dll
Failed to Compile Fragment Shader Source.
ERROR: 0:26: Invalid call of undeclared identifier 'texture2D'
ERROR: 0:27: Use of undeclared identifier 'centerDepth'
ERROR: 0:38: Invalid call of undeclared identifier 'texture2D'
ERROR: 0:39: Use of undeclared identifier 'sampleDepth'
ERROR: 0:43: Use of undeclared identifier 'sampleDepth'
ERROR: 0:43: Use of undeclared identifier 'centerDepth'
2
ERROR: 0:45: Use of undeclared identifier 'sampleSize'
ERROR: 0:45: Use of undeclared identifier 'centerSize'
ERROR: 0:48: Use of undeclared identifier 'sampleSize'
ERROR: 0:49: Use of undeclared identifier 'm'
ERROR: 0:60: Invalid call of undeclared identifier 'texture2D'
ERROR: 0:62: Use of undeclared identifier 'centerDepth'