init
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"__type__": "cc.ImageAsset",
|
||||
"content": {
|
||||
"fmt": "0",
|
||||
"w": 0,
|
||||
"h": 0
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"__type__": "cc.Texture2D",
|
||||
"content": {
|
||||
"base": "2,2,2,2,0,0",
|
||||
"mipmaps": [
|
||||
"e34bd2d4-cacc-4197-8b49-b683fa4e4623"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "BTN_Ok",
|
||||
"atlas": "",
|
||||
"rect": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"width": 389,
|
||||
"height": 153
|
||||
},
|
||||
"offset": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"originalSize": {
|
||||
"width": 389,
|
||||
"height": 153
|
||||
},
|
||||
"rotated": false,
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"vertices": {
|
||||
"rawPosition": [
|
||||
-194.5,
|
||||
-76.5,
|
||||
0,
|
||||
194.5,
|
||||
-76.5,
|
||||
0,
|
||||
-194.5,
|
||||
76.5,
|
||||
0,
|
||||
194.5,
|
||||
76.5,
|
||||
0
|
||||
],
|
||||
"indexes": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
3
|
||||
],
|
||||
"uv": [
|
||||
0,
|
||||
153,
|
||||
389,
|
||||
153,
|
||||
0,
|
||||
0,
|
||||
389,
|
||||
0
|
||||
],
|
||||
"nuv": [
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"minPos": {
|
||||
"x": -194.5,
|
||||
"y": -76.5,
|
||||
"z": 0
|
||||
},
|
||||
"maxPos": {
|
||||
"x": 194.5,
|
||||
"y": 76.5,
|
||||
"z": 0
|
||||
}
|
||||
},
|
||||
"texture": "e34bd2d4-cacc-4197-8b49-b683fa4e4623@6c48a",
|
||||
"packable": true,
|
||||
"pixelsToUnit": 100,
|
||||
"pivot": {
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"meshType": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"__type__": "cc.ImageAsset",
|
||||
"content": {
|
||||
"fmt": "0",
|
||||
"w": 0,
|
||||
"h": 0
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"__type__": "cc.Texture2D",
|
||||
"content": {
|
||||
"base": "2,2,2,2,1,0",
|
||||
"mipmaps": [
|
||||
"e35c4ba5-1ad6-43c4-92f4-fd0b4cb0ca46"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "Toggle_Close",
|
||||
"atlas": "",
|
||||
"rect": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"width": 192,
|
||||
"height": 87
|
||||
},
|
||||
"offset": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"originalSize": {
|
||||
"width": 192,
|
||||
"height": 87
|
||||
},
|
||||
"rotated": false,
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"vertices": {
|
||||
"rawPosition": [
|
||||
-96,
|
||||
-43.5,
|
||||
0,
|
||||
96,
|
||||
-43.5,
|
||||
0,
|
||||
-96,
|
||||
43.5,
|
||||
0,
|
||||
96,
|
||||
43.5,
|
||||
0
|
||||
],
|
||||
"indexes": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
3
|
||||
],
|
||||
"uv": [
|
||||
0,
|
||||
87,
|
||||
192,
|
||||
87,
|
||||
0,
|
||||
0,
|
||||
192,
|
||||
0
|
||||
],
|
||||
"nuv": [
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"minPos": {
|
||||
"x": -96,
|
||||
"y": -43.5,
|
||||
"z": 0
|
||||
},
|
||||
"maxPos": {
|
||||
"x": 96,
|
||||
"y": 43.5,
|
||||
"z": 0
|
||||
}
|
||||
},
|
||||
"texture": "e35c4ba5-1ad6-43c4-92f4-fd0b4cb0ca46@6c48a",
|
||||
"packable": true,
|
||||
"pixelsToUnit": 100,
|
||||
"pivot": {
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"meshType": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,645 @@
|
||||
{
|
||||
"__type__": "cc.EffectAsset",
|
||||
"_name": "particles/builtin-particle-xr-trail",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_native": "",
|
||||
"techniques": [
|
||||
{
|
||||
"name": "add",
|
||||
"passes": [
|
||||
{
|
||||
"rasterizerState": {
|
||||
"cullMode": 0
|
||||
},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{
|
||||
"blend": true,
|
||||
"blendSrc": 2,
|
||||
"blendDst": 4,
|
||||
"blendSrcAlpha": 2,
|
||||
"blendDstAlpha": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"program": "particles/builtin-particle-xr-trail|builtin/internal/particle-trail:vs_main|tinted-fs:add",
|
||||
"depthStencilState": {
|
||||
"depthTest": true,
|
||||
"depthWrite": false
|
||||
},
|
||||
"properties": {
|
||||
"mainTexture": {
|
||||
"value": "white",
|
||||
"type": 28
|
||||
},
|
||||
"mainTiling_Offset": {
|
||||
"value": [
|
||||
1,
|
||||
1,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"type": 16
|
||||
},
|
||||
"frameTile_velLenScale": {
|
||||
"value": [
|
||||
1,
|
||||
1,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"type": 16
|
||||
},
|
||||
"tintColor": {
|
||||
"value": [
|
||||
0.5,
|
||||
0.5,
|
||||
0.5,
|
||||
0.5
|
||||
],
|
||||
"editor": {
|
||||
"type": "color"
|
||||
},
|
||||
"type": 16
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "deferred-forward",
|
||||
"rasterizerState": {
|
||||
"cullMode": 0
|
||||
},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{
|
||||
"blend": true,
|
||||
"blendSrc": 2,
|
||||
"blendDst": 4,
|
||||
"blendSrcAlpha": 2,
|
||||
"blendDstAlpha": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"propertyIndex": 0,
|
||||
"program": "particles/builtin-particle-xr-trail|builtin/internal/particle-trail:vs_main|tinted-fs:add",
|
||||
"depthStencilState": {
|
||||
"depthTest": true,
|
||||
"depthWrite": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"shaders": [
|
||||
{
|
||||
"blocks": [
|
||||
{
|
||||
"name": "Constants",
|
||||
"members": [
|
||||
{
|
||||
"name": "mainTiling_Offset",
|
||||
"type": 16,
|
||||
"count": 1
|
||||
},
|
||||
{
|
||||
"name": "frameTile_velLenScale",
|
||||
"type": 16,
|
||||
"count": 1
|
||||
},
|
||||
{
|
||||
"name": "scale",
|
||||
"type": 16,
|
||||
"count": 1
|
||||
},
|
||||
{
|
||||
"name": "nodeRotation",
|
||||
"type": 16,
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
"defines": [],
|
||||
"stageFlags": 1,
|
||||
"binding": 0
|
||||
},
|
||||
{
|
||||
"name": "FragConstants",
|
||||
"members": [
|
||||
{
|
||||
"name": "tintColor",
|
||||
"type": 16,
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
"defines": [],
|
||||
"stageFlags": 16,
|
||||
"binding": 1
|
||||
}
|
||||
],
|
||||
"samplerTextures": [
|
||||
{
|
||||
"name": "mainTexture",
|
||||
"type": 28,
|
||||
"count": 1,
|
||||
"defines": [],
|
||||
"stageFlags": 16,
|
||||
"binding": 2
|
||||
}
|
||||
],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": [],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "a_position",
|
||||
"defines": [],
|
||||
"format": 32,
|
||||
"location": 0
|
||||
},
|
||||
{
|
||||
"name": "a_texCoord",
|
||||
"defines": [],
|
||||
"format": 44,
|
||||
"location": 1
|
||||
},
|
||||
{
|
||||
"name": "a_texCoord1",
|
||||
"defines": [],
|
||||
"format": 32,
|
||||
"location": 2
|
||||
},
|
||||
{
|
||||
"name": "a_texCoord2",
|
||||
"defines": [],
|
||||
"format": 32,
|
||||
"location": 3
|
||||
},
|
||||
{
|
||||
"name": "a_color",
|
||||
"defines": [],
|
||||
"format": 44,
|
||||
"location": 4
|
||||
}
|
||||
],
|
||||
"varyings": [
|
||||
{
|
||||
"name": "uv",
|
||||
"type": 14,
|
||||
"count": 1,
|
||||
"defines": [],
|
||||
"stageFlags": 17,
|
||||
"location": 0
|
||||
},
|
||||
{
|
||||
"name": "color",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"defines": [],
|
||||
"stageFlags": 17,
|
||||
"location": 1
|
||||
},
|
||||
{
|
||||
"name": "vBarycentric",
|
||||
"type": 15,
|
||||
"count": 1,
|
||||
"defines": [
|
||||
"CC_DRAW_WIRE_FRAME"
|
||||
],
|
||||
"stageFlags": 17,
|
||||
"location": 2
|
||||
}
|
||||
],
|
||||
"fragColors": [
|
||||
{
|
||||
"name": "cc_FragColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"defines": [],
|
||||
"stageFlags": 16,
|
||||
"location": 0
|
||||
}
|
||||
],
|
||||
"descriptors": [
|
||||
{
|
||||
"rate": 0,
|
||||
"blocks": [
|
||||
{
|
||||
"tags": {
|
||||
"builtin": "local"
|
||||
},
|
||||
"name": "CCLocal",
|
||||
"members": [
|
||||
{
|
||||
"name": "cc_matWorld",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matWorldIT",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_lightingMapUVParam",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_localShadowBias",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_reflectionProbeData1",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_reflectionProbeData2",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_reflectionProbeBlendData1",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_reflectionProbeBlendData2",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
}
|
||||
],
|
||||
"defines": [],
|
||||
"stageFlags": 1
|
||||
}
|
||||
],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 1,
|
||||
"blocks": [
|
||||
{
|
||||
"name": "Constants",
|
||||
"members": [
|
||||
{
|
||||
"name": "mainTiling_Offset",
|
||||
"type": 16,
|
||||
"count": 1
|
||||
},
|
||||
{
|
||||
"name": "frameTile_velLenScale",
|
||||
"type": 16,
|
||||
"count": 1
|
||||
},
|
||||
{
|
||||
"name": "scale",
|
||||
"type": 16,
|
||||
"count": 1
|
||||
},
|
||||
{
|
||||
"name": "nodeRotation",
|
||||
"type": 16,
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
"defines": [],
|
||||
"stageFlags": 1,
|
||||
"binding": 0
|
||||
},
|
||||
{
|
||||
"name": "FragConstants",
|
||||
"members": [
|
||||
{
|
||||
"name": "tintColor",
|
||||
"type": 16,
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
"defines": [],
|
||||
"stageFlags": 16,
|
||||
"binding": 1
|
||||
}
|
||||
],
|
||||
"samplerTextures": [
|
||||
{
|
||||
"name": "mainTexture",
|
||||
"type": 28,
|
||||
"count": 1,
|
||||
"defines": [],
|
||||
"stageFlags": 16,
|
||||
"binding": 2
|
||||
}
|
||||
],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 2,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 3,
|
||||
"blocks": [
|
||||
{
|
||||
"tags": {
|
||||
"builtin": "global"
|
||||
},
|
||||
"name": "CCGlobal",
|
||||
"members": [
|
||||
{
|
||||
"name": "cc_time",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_screenSize",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_nativeSize",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_probeInfo",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_debug_view_mode",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
}
|
||||
],
|
||||
"defines": [],
|
||||
"stageFlags": 17
|
||||
},
|
||||
{
|
||||
"tags": {
|
||||
"builtin": "global"
|
||||
},
|
||||
"name": "CCCamera",
|
||||
"members": [
|
||||
{
|
||||
"name": "cc_matView",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matViewInv",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matProj",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matProjInv",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matViewProj",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matViewProjInv",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_cameraPos",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_surfaceTransform",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_screenScale",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_exposure",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_mainLitDir",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_mainLitColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_ambientSky",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_ambientGround",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_fogColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_fogBase",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_fogAdd",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_nearFar",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_viewPort",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
}
|
||||
],
|
||||
"defines": [],
|
||||
"stageFlags": 17
|
||||
}
|
||||
],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
}
|
||||
],
|
||||
"hash": 2100859085,
|
||||
"glsl4": {
|
||||
"vert": "\nprecision mediump float;\nlayout(set = 1, binding = 0) uniform Constants {\n vec4 mainTiling_Offset;\n vec4 frameTile_velLenScale;\n vec4 scale;\n vec4 nodeRotation;\n};\nlayout(set = 0, binding = 0) uniform CCGlobal {\n highp vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_nativeSize;\n mediump vec4 cc_probeInfo;\n mediump vec4 cc_debug_view_mode;\n};\nlayout(set = 0, binding = 1) uniform CCCamera {\n highp mat4 cc_matView;\n highp mat4 cc_matViewInv;\n highp mat4 cc_matProj;\n highp mat4 cc_matProjInv;\n highp mat4 cc_matViewProj;\n highp mat4 cc_matViewProjInv;\n highp vec4 cc_cameraPos;\n mediump vec4 cc_surfaceTransform;\n mediump vec4 cc_screenScale;\n mediump vec4 cc_exposure;\n mediump vec4 cc_mainLitDir;\n mediump vec4 cc_mainLitColor;\n mediump vec4 cc_ambientSky;\n mediump vec4 cc_ambientGround;\n mediump vec4 cc_fogColor;\n mediump vec4 cc_fogBase;\n mediump vec4 cc_fogAdd;\n mediump vec4 cc_nearFar;\n mediump vec4 cc_viewPort;\n};\nlayout(set = 2, binding = 0) uniform CCLocal {\n highp mat4 cc_matWorld;\n highp mat4 cc_matWorldIT;\n highp vec4 cc_lightingMapUVParam;\n highp vec4 cc_localShadowBias;\n highp vec4 cc_reflectionProbeData1;\n highp vec4 cc_reflectionProbeData2;\n highp vec4 cc_reflectionProbeBlendData1;\n highp vec4 cc_reflectionProbeBlendData2;\n};\nlayout(location = 0) out mediump vec2 uv;\nlayout(location = 1) out mediump vec4 color;\nlayout(location = 0) in vec3 a_position;\nlayout(location = 1) in vec4 a_texCoord;\nlayout(location = 2) in vec3 a_texCoord1;\nlayout(location = 3) in vec3 a_texCoord2;\nlayout(location = 4) in vec4 a_color;\n#if CC_DRAW_WIRE_FRAME\n layout(location = 2) out vec3 vBarycentric;\n#endif\nvec4 vs_main() {\n highp vec4 pos = vec4(a_position, 1);\n vec4 velocity = vec4(a_texCoord1.xyz, 0);\n #if !CC_USE_WORLD_SPACE\n pos = cc_matWorld * pos;\n velocity = cc_matWorld * velocity;\n #endif\n float vertOffset = (a_texCoord.x - 0.5) * a_texCoord.y;\n vec3 camUp = normalize(cross(pos.xyz - cc_cameraPos.xyz, velocity.xyz));\n pos.xyz += camUp * vertOffset;\n pos = cc_matViewProj * pos;\n uv = a_texCoord.zw * mainTiling_Offset.xy + mainTiling_Offset.zw;;\n color = a_color;\n #if CC_DRAW_WIRE_FRAME\n vBarycentric = a_texCoord2;\n #endif\n return pos;\n}\nvoid main() { gl_Position = vs_main(); }",
|
||||
"frag": "\n precision mediump float;\n layout(set = 0, binding = 0) uniform CCGlobal {\n highp vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_nativeSize;\n mediump vec4 cc_probeInfo;\n mediump vec4 cc_debug_view_mode;\n };\n layout(set = 0, binding = 1) uniform CCCamera {\n highp mat4 cc_matView;\n highp mat4 cc_matViewInv;\n highp mat4 cc_matProj;\n highp mat4 cc_matProjInv;\n highp mat4 cc_matViewProj;\n highp mat4 cc_matViewProjInv;\n highp vec4 cc_cameraPos;\n mediump vec4 cc_surfaceTransform;\n mediump vec4 cc_screenScale;\n mediump vec4 cc_exposure;\n mediump vec4 cc_mainLitDir;\n mediump vec4 cc_mainLitColor;\n mediump vec4 cc_ambientSky;\n mediump vec4 cc_ambientGround;\n mediump vec4 cc_fogColor;\n mediump vec4 cc_fogBase;\n mediump vec4 cc_fogAdd;\n mediump vec4 cc_nearFar;\n mediump vec4 cc_viewPort;\n };\n vec4 CCFragOutput (vec4 color) {\n return color;\n }\n layout(location = 0) in vec2 uv;\n layout(location = 1) in vec4 color;\n #if CC_DRAW_WIRE_FRAME\n layout(location = 2) in vec3 vBarycentric;\n #endif\n layout(set = 1, binding = 2) uniform sampler2D mainTexture;\n layout(set = 1, binding = 1) uniform FragConstants {\n vec4 tintColor;\n };\n vec4 add () {\n vec4 col = 2.0 * color * tintColor * texture(mainTexture, uv);\n#if CC_DRAW_WIRE_FRAME\n if (any(lessThan(vBarycentric, vec3(0.02)))) {\n col = vec4(0., 1., 1., 1.);\n }\n#endif\n return CCFragOutput(col);\n }\nlayout(location = 0) out vec4 cc_FragColor;\nvoid main() { cc_FragColor = add(); }"
|
||||
},
|
||||
"glsl3": {
|
||||
"vert": "\nprecision mediump float;\nlayout(std140) uniform Constants {\n vec4 mainTiling_Offset;\n vec4 frameTile_velLenScale;\n vec4 scale;\n vec4 nodeRotation;\n};\nlayout(std140) uniform CCGlobal {\n highp vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_nativeSize;\n mediump vec4 cc_probeInfo;\n mediump vec4 cc_debug_view_mode;\n};\nlayout(std140) uniform CCCamera {\n highp mat4 cc_matView;\n highp mat4 cc_matViewInv;\n highp mat4 cc_matProj;\n highp mat4 cc_matProjInv;\n highp mat4 cc_matViewProj;\n highp mat4 cc_matViewProjInv;\n highp vec4 cc_cameraPos;\n mediump vec4 cc_surfaceTransform;\n mediump vec4 cc_screenScale;\n mediump vec4 cc_exposure;\n mediump vec4 cc_mainLitDir;\n mediump vec4 cc_mainLitColor;\n mediump vec4 cc_ambientSky;\n mediump vec4 cc_ambientGround;\n mediump vec4 cc_fogColor;\n mediump vec4 cc_fogBase;\n mediump vec4 cc_fogAdd;\n mediump vec4 cc_nearFar;\n mediump vec4 cc_viewPort;\n};\nlayout(std140) uniform CCLocal {\n highp mat4 cc_matWorld;\n highp mat4 cc_matWorldIT;\n highp vec4 cc_lightingMapUVParam;\n highp vec4 cc_localShadowBias;\n highp vec4 cc_reflectionProbeData1;\n highp vec4 cc_reflectionProbeData2;\n highp vec4 cc_reflectionProbeBlendData1;\n highp vec4 cc_reflectionProbeBlendData2;\n};\nout mediump vec2 uv;\nout mediump vec4 color;\nin vec3 a_position;\nin vec4 a_texCoord;\nin vec3 a_texCoord1;\nin vec3 a_texCoord2;\nin vec4 a_color;\n#if CC_DRAW_WIRE_FRAME\n out vec3 vBarycentric;\n#endif\nvec4 vs_main() {\n highp vec4 pos = vec4(a_position, 1);\n vec4 velocity = vec4(a_texCoord1.xyz, 0);\n #if !CC_USE_WORLD_SPACE\n pos = cc_matWorld * pos;\n velocity = cc_matWorld * velocity;\n #endif\n float vertOffset = (a_texCoord.x - 0.5) * a_texCoord.y;\n vec3 camUp = normalize(cross(pos.xyz - cc_cameraPos.xyz, velocity.xyz));\n pos.xyz += camUp * vertOffset;\n pos = cc_matViewProj * pos;\n uv = a_texCoord.zw * mainTiling_Offset.xy + mainTiling_Offset.zw;;\n color = a_color;\n #if CC_DRAW_WIRE_FRAME\n vBarycentric = a_texCoord2;\n #endif\n return pos;\n}\nvoid main() { gl_Position = vs_main(); }",
|
||||
"frag": "\n precision mediump float;\n layout(std140) uniform CCGlobal {\n highp vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_nativeSize;\n mediump vec4 cc_probeInfo;\n mediump vec4 cc_debug_view_mode;\n };\n layout(std140) uniform CCCamera {\n highp mat4 cc_matView;\n highp mat4 cc_matViewInv;\n highp mat4 cc_matProj;\n highp mat4 cc_matProjInv;\n highp mat4 cc_matViewProj;\n highp mat4 cc_matViewProjInv;\n highp vec4 cc_cameraPos;\n mediump vec4 cc_surfaceTransform;\n mediump vec4 cc_screenScale;\n mediump vec4 cc_exposure;\n mediump vec4 cc_mainLitDir;\n mediump vec4 cc_mainLitColor;\n mediump vec4 cc_ambientSky;\n mediump vec4 cc_ambientGround;\n mediump vec4 cc_fogColor;\n mediump vec4 cc_fogBase;\n mediump vec4 cc_fogAdd;\n mediump vec4 cc_nearFar;\n mediump vec4 cc_viewPort;\n };\n vec4 CCFragOutput (vec4 color) {\n return color;\n }\n in vec2 uv;\n in vec4 color;\n #if CC_DRAW_WIRE_FRAME\n in vec3 vBarycentric;\n #endif\n uniform sampler2D mainTexture;\n layout(std140) uniform FragConstants {\n vec4 tintColor;\n };\n vec4 add () {\n vec4 col = 2.0 * color * tintColor * texture(mainTexture, uv);\n#if CC_DRAW_WIRE_FRAME\n if (any(lessThan(vBarycentric, vec3(0.02)))) {\n col = vec4(0., 1., 1., 1.);\n }\n#endif\n return CCFragOutput(col);\n }\nlayout(location = 0) out vec4 cc_FragColor;\nvoid main() { cc_FragColor = add(); }"
|
||||
},
|
||||
"glsl1": {
|
||||
"vert": "\nprecision mediump float;\n uniform vec4 mainTiling_Offset;\nuniform highp mat4 cc_matViewProj;\n uniform highp vec4 cc_cameraPos;\nuniform highp mat4 cc_matWorld;\nvarying mediump vec2 uv;\nvarying mediump vec4 color;\nattribute vec3 a_position;\nattribute vec4 a_texCoord;\nattribute vec3 a_texCoord1;\nattribute vec3 a_texCoord2;\nattribute vec4 a_color;\n#if CC_DRAW_WIRE_FRAME\n varying vec3 vBarycentric;\n#endif\nvec4 vs_main() {\n highp vec4 pos = vec4(a_position, 1);\n vec4 velocity = vec4(a_texCoord1.xyz, 0);\n #if !CC_USE_WORLD_SPACE\n pos = cc_matWorld * pos;\n velocity = cc_matWorld * velocity;\n #endif\n float vertOffset = (a_texCoord.x - 0.5) * a_texCoord.y;\n vec3 camUp = normalize(cross(pos.xyz - cc_cameraPos.xyz, velocity.xyz));\n pos.xyz += camUp * vertOffset;\n pos = cc_matViewProj * pos;\n uv = a_texCoord.zw * mainTiling_Offset.xy + mainTiling_Offset.zw;;\n color = a_color;\n #if CC_DRAW_WIRE_FRAME\n vBarycentric = a_texCoord2;\n #endif\n return pos;\n}\nvoid main() { gl_Position = vs_main(); }",
|
||||
"frag": "\n precision mediump float;\n vec4 CCFragOutput (vec4 color) {\n return color;\n }\n varying vec2 uv;\n varying vec4 color;\n #if CC_DRAW_WIRE_FRAME\n varying vec3 vBarycentric;\n #endif\n uniform sampler2D mainTexture;\n uniform vec4 tintColor;\n vec4 add () {\n vec4 col = 2.0 * color * tintColor * texture2D(mainTexture, uv);\n#if CC_DRAW_WIRE_FRAME\n if (any(lessThan(vBarycentric, vec3(0.02)))) {\n col = vec4(0., 1., 1., 1.);\n }\n#endif\n return CCFragOutput(col);\n }\nvoid main() { gl_FragColor = add(); }"
|
||||
},
|
||||
"builtins": {
|
||||
"globals": {
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CCGlobal",
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "CCCamera",
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"locals": {
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CCLocal",
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"statistics": {
|
||||
"CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 60,
|
||||
"CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 43
|
||||
}
|
||||
},
|
||||
"defines": [
|
||||
{
|
||||
"name": "CC_RENDER_MODE",
|
||||
"type": "number",
|
||||
"defines": [],
|
||||
"range": [
|
||||
0,
|
||||
4
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "CC_DRAW_WIRE_FRAME",
|
||||
"type": "boolean",
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_WORLD_SPACE",
|
||||
"type": "boolean",
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"name": "particles/builtin-particle-xr-trail|builtin/internal/particle-trail:vs_main|tinted-fs:add"
|
||||
}
|
||||
],
|
||||
"combinations": [],
|
||||
"hideInEditor": false
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"__type__": "cc.Material",
|
||||
"_name": "lambert102",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_native": "",
|
||||
"_effectAsset": {
|
||||
"__uuid__": "f648964e-8d32-41fc-9ac9-7a1e714dd17b",
|
||||
"__expectedType__": "cc.EffectAsset"
|
||||
},
|
||||
"_techIdx": 0,
|
||||
"_defines": [
|
||||
{
|
||||
"DCC_APP_NAME": 5
|
||||
}
|
||||
],
|
||||
"_states": [
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {}
|
||||
}
|
||||
],
|
||||
"_props": [
|
||||
{
|
||||
"albedoScale": 0.800000011920929,
|
||||
"mainColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"emissiveScale": 1,
|
||||
"emissive": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,193 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"persistent": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "SM_Env_Generic_Cloud_01",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"_mobility": 0,
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "SM_Env_Generic_Cloud_01",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"_mobility": 0,
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.MeshRenderer",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "e3f7e558-a619-440d-8c63-43d3e8819b3c@0a2e0",
|
||||
"__expectedType__": "cc.Material"
|
||||
}
|
||||
],
|
||||
"_visFlags": 0,
|
||||
"bakeSettings": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_mesh": {
|
||||
"__uuid__": "e3f7e558-a619-440d-8c63-43d3e8819b3c@2913e",
|
||||
"__expectedType__": "cc.Mesh"
|
||||
},
|
||||
"_shadowCastingMode": 0,
|
||||
"_shadowReceivingMode": 1,
|
||||
"_shadowBias": 0,
|
||||
"_shadowNormalBias": 0,
|
||||
"_reflectionProbeId": -1,
|
||||
"_reflectionProbeBlendId": -1,
|
||||
"_reflectionProbeBlendWeight": 0,
|
||||
"_enabledGlobalStandardSkinObject": false,
|
||||
"_enableMorph": true,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "8dKywtCV1b7bKmyjeOB8yQ"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.ModelBakeSettings",
|
||||
"texture": null,
|
||||
"uvParam": {
|
||||
"__type__": "cc.Vec4",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 0
|
||||
},
|
||||
"_bakeable": false,
|
||||
"_castShadow": false,
|
||||
"_receiveShadow": false,
|
||||
"_recieveShadow": false,
|
||||
"_lightmapSize": 64,
|
||||
"_useLightProbe": false,
|
||||
"_bakeToLightProbe": true,
|
||||
"_reflectionProbeType": 0,
|
||||
"_bakeToReflectionProbe": true
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "80fZL+D+pYpoLRkc0omYJ9",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "7dxEOrLrZUdLMBzZ17fxP+",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
}
|
||||
]
|
||||
Binary file not shown.
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"__type__": "cc.Mesh",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_native": ".bin",
|
||||
"_struct": {
|
||||
"primitives": [
|
||||
{
|
||||
"primitiveMode": 7,
|
||||
"vertexBundelIndices": [
|
||||
0
|
||||
],
|
||||
"indexView": {
|
||||
"offset": 14400,
|
||||
"length": 600,
|
||||
"count": 300,
|
||||
"stride": 2
|
||||
}
|
||||
}
|
||||
],
|
||||
"vertexBundles": [
|
||||
{
|
||||
"view": {
|
||||
"offset": 0,
|
||||
"length": 14400,
|
||||
"count": 300,
|
||||
"stride": 48
|
||||
},
|
||||
"attributes": [
|
||||
{
|
||||
"name": "a_position",
|
||||
"format": 32,
|
||||
"isNormalized": false
|
||||
},
|
||||
{
|
||||
"name": "a_normal",
|
||||
"format": 32,
|
||||
"isNormalized": false
|
||||
},
|
||||
{
|
||||
"name": "a_texCoord",
|
||||
"format": 21,
|
||||
"isNormalized": false
|
||||
},
|
||||
{
|
||||
"name": "a_tangent",
|
||||
"format": 44,
|
||||
"isNormalized": false
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"minPosition": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -2.079089879989624,
|
||||
"y": -0.42939576506614685,
|
||||
"z": -0.7542632818222046
|
||||
},
|
||||
"maxPosition": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 2.054884433746338,
|
||||
"y": 0.5683321952819824,
|
||||
"z": 0.9539169073104858
|
||||
}
|
||||
},
|
||||
"_hash": 1120038095,
|
||||
"_allowDataAccess": true
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"__type__": "cc.Texture2D",
|
||||
"content": {
|
||||
"base": "2,2,0,0,0,0",
|
||||
"mipmaps": [
|
||||
"e3f7e558-a619-440d-8c63-43d3e8819b3c@9b723"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"__type__": "cc.ImageAsset",
|
||||
"content": {
|
||||
"fmt": "0",
|
||||
"w": 0,
|
||||
"h": 0
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 70 B |
Reference in New Issue
Block a user