Skip to content

emrecancubukcu/UnitySubstanceViewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnitySubstanceViewer

Substance Viewer for Unity3D

The code basically takes all the inputs from the sbsar file and automatically creates a gui and it allows the user to change the parameters in real time (depending on the resolution of course). It's been sitting on the hard drive for years. I hope it will be useful for someone. It is not completely finished as it is a hobby project.

Unity version: 2020.1.9f1

USAGE

  1. Copy sbsar file to projects/assets folder
  2. open mainlevel
  3. drag&drop sbsar graph to plane subtanceviewer scripts's "mysubstance" slot
  4. drag&drop sbsar graph to plane's material
  5. and play!

TODO

  • some input types not implemented
  • more test
  • more beautiful method for importing presets
  • more acceptable color picker

hdr skys: https://polyhaven.com/

Thanks my friend Bekir Ozturk from Microsoft for enlightening me about "Marshal.PtrToStructure" (bekir_ozturk@yahoo.com )

About

Homemade Substance Material (Sbsar) Viewer for Unity3D

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages