摘要:
//: Playground - noun: a place where people can play import UIKit var str = "Hello, playground" func greet(name: String, day: String) ->String { retur 阅读全文
posted @ 2016-11-16 00:27
wjwdive
阅读(358)
评论(0)
推荐(0)
摘要:
//: Playground - noun: a place where people can play import UIKit var str = "Hello, playground" let individualScores = [75, 43, 103, 87, 12]; var team 阅读全文
posted @ 2016-11-16 00:26
wjwdive
阅读(353)
评论(0)
推荐(0)
摘要:
//: Playground - noun: a place where people can play import UIKit var str = "Hello, playground" //var 声明变量 很像JavaScript var myVariable = 42; myVariabl 阅读全文
posted @ 2016-11-16 00:21
wjwdive
阅读(349)
评论(0)
推荐(0)
摘要:
uniform变量在vertex和fragment两者之间声明方式完全一样,则它可以在vertex和fragment共享使用。(相当于一个被vertex和fragment shader共享的全局变量) uniform变量一般用来表示:变换矩阵,材质,光照参数和颜色等信息。 以下是例子: unifor 阅读全文
posted @ 2016-11-16 00:08
wjwdive
阅读(1242)
评论(0)
推荐(0)