Nyahoon Games Pte. Ltd.

Menu

  • TOP
  • Unity Assets
  • Games
  • Contact

Month: September 2014

saturate(x) vs max(0, x)

A simple question, which is faster? “saturate(x)” or “max(0, x)”? It’s a tiny problem, but it might be good to know for those people who write shader program. For example, when writing a shader for diffuse lighting, write a code

takao 2014/09/23 Blog, Programming, Unity3D 1 Comment Read more
Copyright © 2023 Nyahoon Games Pte. Ltd. Theme by: ThemeGrill Powered by: WordPress
  • EnglishEnglish
  • 日本語日本語