如果我的着色器程序中有不同的浮点数:
varying highp float someFloat;
Run Code Online (Sandbox Code Playgroud)
在顶点着色器中,我将其设置为某种东西.
someFloat = 1.0;
Run Code Online (Sandbox Code Playgroud)
为什么在我的片段着色器中这个比较似乎返回false?
someFloat == 1.0 // false
Run Code Online (Sandbox Code Playgroud)
但这会返回真的吗?
someFloat > .0 // true
Run Code Online (Sandbox Code Playgroud)
在iPad mini上测试openGL ES.
我打算在objective-c/cocoa中制作一个简单的OSX绘图/绘画应用程序,并认为最好的方法是(简而言之)在NSView子类中使用quartz.
问题:我应该考虑使用OPEN GL还是Quartz会这样做?使用OPEN GL意味着一个巨大的性能优势吗?
该应用程序将是非常基本的,应该(例如)能够:
-paint in color -paint with bitmap textures -use gradient fills -programmatic paint brush