This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 商品种类 | |
*/ | |
var Location = new schema({ | |
// 地点位置 | |
name: { type: String, required: true }, | |
// 位置GPS坐标 | |
location: { type: Array, index: "2d" } | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var LayerBlur = cc.Layer.extend({ | |
ctor: function (blurRadius, maskColor) { | |
this._super(); | |
// create shader program | |
var program = cc.GLProgram.create(res.blur_vsh, res.blur_fsh); | |
program.addAttribute(cc.ATTRIBUTE_NAME_POSITION, cc.VERTEX_ATTRIB_POSITION); | |
program.addAttribute(cc.ATTRIBUTE_NAME_COLOR, cc.VERTEX_ATTRIB_COLOR); | |
program.addAttribute(cc.ATTRIBUTE_NAME_TEX_COORD, cc.VERTEX_ATTRIB_TEX_COORDS); | |
program.link(); |