Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Pixel Bender

Name: Anonymous 2009-01-24 18:42

How do I convert float4 to float?

delta is float, cX are float4:
This works in HLSL:
delta = (c3 + 2.0 * c5 + c8) - (c1 + 2.0 * c4 + c6);

But it doesn't in Pixel Bender.

HALP.

Name: Anonymous 2009-01-24 18:51

floats dont sink

Name: Anonymous 2009-01-24 19:35

fromIntegral

Name: Anonymous 2009-01-24 19:43

2.0.to_f

Name: Anonymous 2009-01-24 19:52

Nevermind, I just accidentaly

float4 woot = (c3 + 2.0 * c5 + c8) - (c1 + 2.0 * c4 + c6);
delta = (woot.x + woot.y + woot.z + woot.w) / 4.0;

Name: Anonymous 2009-01-24 21:05

>>2
sinks don't float

Name: Anonymous 2009-03-06 12:59


The client side You all know you   really dropped out   C RPGMaker D.

Name: Anonymous 2010-12-09 6:18

Name: Anonymous 2011-02-04 17:56

Name: Anonymous 2011-02-04 19:18

Name: Anonymous 2013-01-18 22:54

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Don't change these.
Name: Email:
Entire Thread Thread List