mirror of
https://github.com/szrpf/DataBoardDemo.git
synced 2025-12-08 13:49:04 +00:00
create project
This commit is contained in:
84
library/imports/14/144c3297-af63-49e8-b8ef-1cfa29b3be28.json
Normal file
84
library/imports/14/144c3297-af63-49e8-b8ef-1cfa29b3be28.json
Normal file
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"__type__": "cc.EffectAsset",
|
||||
"_name": "builtin-2d-gray-sprite",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"properties": null,
|
||||
"techniques": [
|
||||
{
|
||||
"passes": [
|
||||
{
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{
|
||||
"blend": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"rasterizerState": {
|
||||
"cullMode": 0
|
||||
},
|
||||
"properties": {
|
||||
"texture": {
|
||||
"value": "white",
|
||||
"type": 29
|
||||
}
|
||||
},
|
||||
"program": "builtin-2d-gray-sprite|vs|fs"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"shaders": [
|
||||
{
|
||||
"hash": 4278481454,
|
||||
"glsl3": {
|
||||
"vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nin vec3 a_position;\nin mediump vec2 a_uv0;\nout mediump vec2 v_uv0;\nin vec4 a_color;\nout vec4 v_color;\nvoid main () {\n gl_Position = cc_matViewProj * vec4(a_position, 1);\n v_uv0 = a_uv0;\n v_color = a_color;\n}",
|
||||
"frag": "\nprecision highp float;\nuniform sampler2D texture;\nin mediump vec2 v_uv0;\nin vec4 v_color;\nvoid main () {\n vec4 color = v_color;\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n color.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n color.a *= texture_tmp.a;\n #else\n color *= texture_tmp;\n #endif\n float gray = 0.2126*color.r + 0.7152*color.g + 0.0722*color.b;\n gl_FragColor = vec4(gray, gray, gray, color.a);\n}"
|
||||
},
|
||||
"glsl1": {
|
||||
"vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nattribute vec3 a_position;\nattribute mediump vec2 a_uv0;\nvarying mediump vec2 v_uv0;\nattribute vec4 a_color;\nvarying vec4 v_color;\nvoid main () {\n gl_Position = cc_matViewProj * vec4(a_position, 1);\n v_uv0 = a_uv0;\n v_color = a_color;\n}",
|
||||
"frag": "\nprecision highp float;\nuniform sampler2D texture;\nvarying mediump vec2 v_uv0;\nvarying vec4 v_color;\nvoid main () {\n vec4 color = v_color;\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n color.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n color.a *= texture_tmp.a;\n #else\n color *= texture_tmp;\n #endif\n float gray = 0.2126*color.r + 0.7152*color.g + 0.0722*color.b;\n gl_FragColor = vec4(gray, gray, gray, color.a);\n}"
|
||||
},
|
||||
"builtins": {
|
||||
"globals": {
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CCGlobal",
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplers": []
|
||||
},
|
||||
"locals": {
|
||||
"blocks": [],
|
||||
"samplers": []
|
||||
}
|
||||
},
|
||||
"defines": [
|
||||
{
|
||||
"name": "CC_USE_ALPHA_ATLAS_texture",
|
||||
"type": "boolean",
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "INPUT_IS_GAMMA",
|
||||
"type": "boolean",
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"blocks": [],
|
||||
"samplers": [
|
||||
{
|
||||
"name": "texture",
|
||||
"type": 29,
|
||||
"count": 1,
|
||||
"defines": [],
|
||||
"binding": 30
|
||||
}
|
||||
],
|
||||
"record": null,
|
||||
"name": "builtin-2d-gray-sprite|vs|fs"
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
library/imports/14/14c74869-bdb4-4f57-86d8-a7875de2be30.bin
Normal file
BIN
library/imports/14/14c74869-bdb4-4f57-86d8-a7875de2be30.bin
Normal file
Binary file not shown.
90
library/imports/14/14c74869-bdb4-4f57-86d8-a7875de2be30.json
Normal file
90
library/imports/14/14c74869-bdb4-4f57-86d8-a7875de2be30.json
Normal file
@@ -0,0 +1,90 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Mesh",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": ".bin",
|
||||
"_vertexBundles": [
|
||||
{
|
||||
"__id__": 1
|
||||
}
|
||||
],
|
||||
"_primitives": [
|
||||
{
|
||||
"__id__": 6
|
||||
}
|
||||
],
|
||||
"_minPos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -0.5,
|
||||
"y": -0.0999999940395355,
|
||||
"z": -0.5
|
||||
},
|
||||
"_maxPos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.5,
|
||||
"y": 0.0999999940395355,
|
||||
"z": 0.5
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.mesh.VertexBundle",
|
||||
"data": {
|
||||
"__id__": 2
|
||||
},
|
||||
"formats": [
|
||||
{
|
||||
"__id__": 3
|
||||
},
|
||||
{
|
||||
"__id__": 4
|
||||
},
|
||||
{
|
||||
"__id__": 5
|
||||
}
|
||||
],
|
||||
"verticesCount": 1089
|
||||
},
|
||||
{
|
||||
"__type__": "cc.BufferRange",
|
||||
"offset": 0,
|
||||
"length": 34848
|
||||
},
|
||||
{
|
||||
"__type__": "cc.mesh.VertexFormat",
|
||||
"name": "a_normal",
|
||||
"type": 5126,
|
||||
"num": 3,
|
||||
"normalize": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.mesh.VertexFormat",
|
||||
"name": "a_position",
|
||||
"type": 5126,
|
||||
"num": 3,
|
||||
"normalize": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.mesh.VertexFormat",
|
||||
"name": "a_uv0",
|
||||
"type": 5126,
|
||||
"num": 2,
|
||||
"normalize": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.mesh.Primitive",
|
||||
"vertexBundleIndices": [
|
||||
0
|
||||
],
|
||||
"data": {
|
||||
"__id__": 7
|
||||
},
|
||||
"indexUnit": 5123,
|
||||
"topology": 4
|
||||
},
|
||||
{
|
||||
"__type__": "cc.BufferRange",
|
||||
"offset": 34848,
|
||||
"length": 12288
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user