Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2000 Sprites @ 60 Hz tops ? / Core Kernel slowed down by Inputs ?




Am 29.05.2005 um 16:58 schrieb Sam Kass:

    color = compare(xy.x - x, color, bgColor);


I think the parameters have to be the same size to compile, so I had to write


kernel vec4    slider( sampler image, float x, __color bgColor)
{
   vec2    xy;
   vec4    color;
   vec4    tmp;

   xy = samplerCoord(image);
   color = sample( image, xy);
   tmp.r = xy.x - x;
   tmp.g = 0.0;
   tmp.b = 0.0;
   tmp.a = 0.0;
   color = compare( tmp, color, bgColor);
   return( color);
}

Interestingly though, this still produces the wrong color.

Ciao
    Nat!

     Jedenfalls sind zehn Fehlstarts hintereinander    [E. Fuchs]
          ein sehr interessanter Beweis
              fuer unsere Theorie
 von der natuerlichen Ueberlegenheit des Dezimalsystems

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >2000 Sprites @ 60 Hz tops ? / Core Kernel slowed down by Inputs ? (From: Nat! <email@hidden>)
 >Re: 2000 Sprites @ 60 Hz tops ? / Core Kernel slowed down by Inputs ? (From: Pierre-Olivier Latour <email@hidden>)
 >Re: 2000 Sprites @ 60 Hz tops ? / Core Kernel slowed down by Inputs ? (From: Nat! <email@hidden>)
 >Re: 2000 Sprites @ 60 Hz tops ? / Core Kernel slowed down by Inputs ? (From: Pierre-Olivier Latour <email@hidden>)
 >Re: 2000 Sprites @ 60 Hz tops ? / Core Kernel slowed down by Inputs ? (From: Nat! <email@hidden>)
 >Re: 2000 Sprites @ 60 Hz tops ? / Core Kernel slowed down by Inputs ? (From: Pierre-Olivier Latour <email@hidden>)
 >Re: 2000 Sprites @ 60 Hz tops ? / Core Kernel slowed down by Inputs ? (From: Nat! <email@hidden>)
 >Re: 2000 Sprites @ 60 Hz tops ? / Core Kernel slowed down by Inputs ? (From: Nat! <email@hidden>)
 >Re: 2000 Sprites @ 60 Hz tops ? / Core Kernel slowed down by Inputs ? (From: Sam Kass <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.