Facepunch / sbox-issues

175 stars 12 forks source link

Previewing a procedural material can sometimes not work #5416

Closed QuackCola closed 4 months ago

QuackCola commented 6 months ago

Describe the bug

For some reason the material preview of a simple checkerboard pattern generated from a shadergraph shader in my case fails to preview correctly in the following areas: * in the thumbnail preview in the assets browser

To Reproduce

  1. open attached test project .
  2. goto and click once on checkerboard.vmat in the materials folder.
  3. observe reported bug.

Expected behavior

for the checkerboard pattern to be able to be previewed.

Media/Files

example 1 : Screenshot 2024-04-26 183144 example 2 : Screenshot 2024-04-26 183251

example of preview working fine in shadergraph :

Screenshot 2024-04-26 183432

example of preview working fine in MET only on the sphere primitive :

Screenshot 2024-04-26 184340

testproject.zip

Additional context

No response

aylaylay commented 4 months ago

Not a bug, your min max range for tiling is set to 0-1 so in material editor it clamps tiling to 1, which is just going to show a black square.

If you set the max range to 4 (or whatever) then material editor will show it fine.

sbox-dev_nhSCuL8Sgs

sbox-dev_S57ArlgmCx