17.08.2015 Views

Fast mobile shaders or rather Mobile! Fast!

Fast mobile shaders - Unity Technologies Blog

Fast mobile shaders - Unity Technologies Blog

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Precision: fixed / lowp•••-2.0 .. 2.0, 8 bit fixed pointCol<strong>or</strong>s, some n<strong>or</strong>malized vect<strong>or</strong>sAvoid swizzles and scalar lowplowp good f<strong>or</strong> most col<strong>or</strong>s and some n<strong>or</strong>malized vect<strong>or</strong>s.Note that at least -2.0 .. 2.0 range is guaranteed, but clamping to +-2 may <strong>or</strong> might nothappen depending on the GPU and the driver (i.e. GPU might have much larger range f<strong>or</strong>lowp).Avoid lowp if it will need fancy swizzles <strong>or</strong> be involved in purely scalar computations.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!