mirror of
https://gitee.com/yeshao2069/cocos-creator-shader.git
synced 2026-05-07 00:59:56 +08:00
commit blur 2d
This commit is contained in:
@@ -27,7 +27,7 @@ Cocos Creator v3.6.x
|
||||
| 65 | [风格化fuji](#cyberfuji) | 66 | [复古的太阳](#retrosun) | 67 | [流失](#downthedrain) | 68 | [寰宇之内](#universewithin) |
|
||||
| 69 | [图片渐变](#spritegradient) | 70 | [图片阴影](#spriteshadow) | 71 | [卷轴展开和收拢](#reelunfoldingandclosing) | 72 | [图片边缘发光](#edgehighlight) |
|
||||
| 73 | [阴间披风](#cloakoftheunderworld) | 74 | [2D雾效](#fog2d) | 75 | [Cocos启动页文字](#labelcocos) | 76 | [果冻Q弹效果](#jelly) |
|
||||
| 77 | [光射线](#lightrays2d) |
|
||||
| 77 | [光射线](#lightrays2d) | 78 | [局部模糊](#blur2d) |
|
||||
|
||||
### 3D
|
||||
| NO1 | Proj1 | NO2 | Proj2 | NO3 | Proj3 | NO4 | Proj4 |
|
||||
@@ -684,6 +684,12 @@ Cocos Creator v3.6.x
|
||||
| 4.17 | 2D | [光射线](https://gitee.com/yeshao2069/cocos-creator-shader/tree/v3.6.x/demo/2dP2/Creator3.6.2_2D_LightRays2D) | 3.6.2 | [返回顶部](#2d) | 低 | 无 |
|
||||
<div align=center><img src="./gif/202211/2022111601.gif" width="400" height="300" /></div>
|
||||
|
||||
### Blur2D
|
||||
| 编号 | 类目 | 项目 | 编辑器版本 | 返回顶部 | 模式 | 备注 |
|
||||
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|
||||
| 4.18 | 2D | [局部模糊](https://gitee.com/yeshao2069/cocos-creator-shader/tree/v3.6.x/demo/2dP2/Creator3.6.2_2D_Blur) | 3.6.2 | [返回顶部](#2d) | 低 | 无 |
|
||||
<div align=center><img src="./gif/202212/2022120201.gif" width="400" height="300" /></div>
|
||||
|
||||
### CircleAvatar3D
|
||||
| 编号 | 类目 | 项目 | 编辑器版本 | 返回顶部 | 模式 | 备注 |
|
||||
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|
||||
|
||||
5
demo/2dP2/Creator3.6.2_2D_Blur/README.md
Normal file
5
demo/2dP2/Creator3.6.2_2D_Blur/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
### 简介
|
||||
基于 CocosCreator 3.6.2 版本创建的 **局部模糊** 工程。
|
||||
|
||||
### 效果预览
|
||||

|
||||
3533
demo/2dP2/Creator3.6.2_2D_Blur/assets/PartialBlur.scene
Normal file
3533
demo/2dP2/Creator3.6.2_2D_Blur/assets/PartialBlur.scene
Normal file
File diff suppressed because it is too large
Load Diff
11
demo/2dP2/Creator3.6.2_2D_Blur/assets/PartialBlur.scene.meta
Normal file
11
demo/2dP2/Creator3.6.2_2D_Blur/assets/PartialBlur.scene.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.1.40",
|
||||
"importer": "scene",
|
||||
"imported": true,
|
||||
"uuid": "7f04b470-61e3-4025-baff-22a71b4d9c65",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
19
demo/2dP2/Creator3.6.2_2D_Blur/assets/capture.ts
Normal file
19
demo/2dP2/Creator3.6.2_2D_Blur/assets/capture.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { _decorator, Component, director, Node, find, UITransform, RenderTexture, gfx, ImageAsset, Sprite, SpriteFrame, Texture2D, view, Color, Camera, Vec3, tween, Vec2, Canvas, Material } from 'cc';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('NewComponent')
|
||||
export class NewComponent extends Component {
|
||||
|
||||
@property(Node)
|
||||
copyNode: Node | null = null;
|
||||
|
||||
|
||||
// 设置显示区域
|
||||
ShowRange(data) {
|
||||
// 获取材质实例对象进行设置
|
||||
let mat = this.copyNode.getComponent(Sprite).getMaterialInstance(0);
|
||||
|
||||
mat.setProperty('radius', data.progress)
|
||||
}
|
||||
}
|
||||
|
||||
9
demo/2dP2/Creator3.6.2_2D_Blur/assets/capture.ts.meta
Normal file
9
demo/2dP2/Creator3.6.2_2D_Blur/assets/capture.ts.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "5833f77d-c581-43e7-83e6-28ec3a1b9464",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
12
demo/2dP2/Creator3.6.2_2D_Blur/assets/res.meta
Normal file
12
demo/2dP2/Creator3.6.2_2D_Blur/assets/res.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"ver": "1.1.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "2f07e035-7f34-4805-9431-65654a1b15d2",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"compressionType": {},
|
||||
"isRemoteBundle": {}
|
||||
}
|
||||
}
|
||||
12
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/dragonBones.meta
Normal file
12
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/dragonBones.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"ver": "1.1.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "559dd394-f84b-421d-8d7e-57b733306096",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"compressionType": {},
|
||||
"isRemoteBundle": {}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.0.2",
|
||||
"importer": "dragonbones",
|
||||
"imported": true,
|
||||
"uuid": "f9d3a63d-59ec-45cf-81a9-04513c8cf604",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"imagePath":"texture.png","name":"NewDragonTest","SubTexture":[{"x":1,"y":342,"width":447,"name":"tail","height":191},{"x":326,"y":1,"width":270,"name":"chibangL2","height":273},{"x":1,"y":761,"width":95,"name":"chibangL1","height":62},{"x":955,"y":466,"width":62,"name":"dabiL","height":68},{"x":839,"y":216,"width":104,"name":"xiaobiL","height":45},{"x":524,"y":650,"width":75,"name":"shouL","height":76},{"x":1,"y":690,"width":97,"name":"jiaoL","height":69},{"x":437,"y":720,"width":67,"name":"xiaotuiL","height":31},{"x":437,"y":650,"width":85,"name":"datuiL","height":68},{"x":598,"y":1,"width":239,"name":"shenti","height":267},{"x":753,"y":270,"width":263,"name":"bozixia","height":194},{"x":450,"y":276,"width":301,"name":"bozishang","height":230},{"x":1,"y":535,"width":107,"name":"toujiaoL","height":153},{"x":945,"y":216,"width":71,"name":"tou1","height":46},{"x":638,"y":508,"width":106,"name":"chujiao","height":112},{"x":110,"y":535,"width":118,"name":"er","height":122},{"x":450,"y":508,"width":186,"name":"zui","height":140},{"x":753,"y":466,"width":200,"name":"toujiaoR","height":156},{"x":839,"y":1,"width":176,"name":"tou","height":213},{"x":110,"y":682,"width":91,"name":"jiaoR","height":105},{"x":955,"y":536,"width":61,"name":"xiaotuiR","height":65},{"x":351,"y":535,"width":86,"name":"datuiR","height":113},{"x":1,"y":1,"width":323,"name":"chibangR2","height":339},{"x":326,"y":650,"width":109,"name":"chibangR1","height":73},{"x":230,"y":535,"width":119,"name":"jianbang","height":100},{"x":326,"y":725,"width":87,"name":"dabiR","height":55},{"x":326,"y":276,"width":122,"name":"xiaobiR","height":61},{"x":230,"y":637,"width":94,"name":"shouR","height":103},{"x":638,"y":624,"width":372,"name":"author","height":56}]}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.0.2",
|
||||
"importer": "dragonbones-atlas",
|
||||
"imported": true,
|
||||
"uuid": "082821ca-1734-4413-8187-5568da5f88bd",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 606 KiB |
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"ver": "1.0.25",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "f75f0c2b-97bd-4bef-abe0-a7c652532d1f",
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "f75f0c2b-97bd-4bef-abe0-a7c652532d1f@6c48a",
|
||||
"displayName": "texture",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"anisotropy": 0,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "f75f0c2b-97bd-4bef-abe0-a7c652532d1f",
|
||||
"visible": true
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"hasAlpha": true,
|
||||
"type": "texture",
|
||||
"redirect": "f75f0c2b-97bd-4bef-abe0-a7c652532d1f@6c48a",
|
||||
"fixAlphaTransparencyArtifacts": false
|
||||
}
|
||||
}
|
||||
12
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/material.meta
Normal file
12
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/material.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"ver": "1.1.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "130574c3-a8e9-431b-a0ae-cc422bafcf85",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"compressionType": {},
|
||||
"isRemoteBundle": {}
|
||||
}
|
||||
}
|
||||
40
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/material/blur.mtl
Normal file
40
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/material/blur.mtl
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"__type__": "cc.Material",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"_effectAsset": {
|
||||
"__uuid__": "a49e1464-71b2-4710-aec0-2a54c07dcba5",
|
||||
"__expectedType__": "cc.EffectAsset"
|
||||
},
|
||||
"_techIdx": 0,
|
||||
"_defines": [
|
||||
{
|
||||
"SAMPLE_FROM_RT": true,
|
||||
"USE_TEXTURE": true
|
||||
}
|
||||
],
|
||||
"_states": [
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"depthStencilState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"_props": [
|
||||
{
|
||||
"texSize": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 480,
|
||||
"y": 320
|
||||
},
|
||||
"texAlpha": 0.5,
|
||||
"x_count": 0.5,
|
||||
"y_count": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.0.16",
|
||||
"importer": "material",
|
||||
"imported": true,
|
||||
"uuid": "59948ae5-bde5-40d8-a5c7-c22adfe9ac1a",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"__type__": "cc.Material",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"_effectAsset": {
|
||||
"__uuid__": "60f7195c-ec2a-45eb-ba94-8955f60e81d0",
|
||||
"__expectedType__": "cc.EffectAsset"
|
||||
},
|
||||
"_techIdx": 0,
|
||||
"_defines": [
|
||||
{
|
||||
"USE_TEXTURE": true
|
||||
}
|
||||
],
|
||||
"_states": [
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"depthStencilState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"_props": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.0.16",
|
||||
"importer": "material",
|
||||
"imported": true,
|
||||
"uuid": "2a53a091-1281-4573-ab43-f1b910538aaa",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
12
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/particle.meta
Normal file
12
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/particle.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"ver": "1.1.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "d2ff2f40-b2ad-4967-8c7e-fbe998097f82",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"compressionType": {},
|
||||
"isRemoteBundle": {}
|
||||
}
|
||||
}
|
||||
112
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/particle/Leaves.plist
Normal file
112
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/particle/Leaves.plist
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"ver": "1.0.2",
|
||||
"importer": "particle",
|
||||
"imported": true,
|
||||
"uuid": "f1fbdda6-efe5-4cc4-afcf-70eda74966d6",
|
||||
"files": [
|
||||
".json",
|
||||
".plist"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"totalParticles": 36,
|
||||
"life": 5,
|
||||
"lifeVar": 0.7,
|
||||
"emissionRate": 7.2,
|
||||
"duration": -1,
|
||||
"srcBlendFactor": 775,
|
||||
"dstBlendFactor": 771,
|
||||
"startColor": {
|
||||
"_val": 4278254248,
|
||||
"r": 168.58049243688583,
|
||||
"g": 250.00480324029922,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"startColorVar": {
|
||||
"_val": 0,
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 0
|
||||
},
|
||||
"endColor": {
|
||||
"_val": 4278221311,
|
||||
"r": 255,
|
||||
"g": 121.66983604431152,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"endColorVar": {
|
||||
"_val": 0,
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 0
|
||||
},
|
||||
"startSize": 60,
|
||||
"startSizeVar": 40,
|
||||
"endSize": 60,
|
||||
"endSizeVar": 0,
|
||||
"positionType": 0,
|
||||
"sourcePos": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"posVar": {
|
||||
"x": 190.76,
|
||||
"y": 7
|
||||
},
|
||||
"angle": 270,
|
||||
"angleVar": 0,
|
||||
"startSpin": 180,
|
||||
"startSpinVar": 50,
|
||||
"endSpin": 90,
|
||||
"endSpinVar": 300,
|
||||
"emitterMode": 0,
|
||||
"gravity": {
|
||||
"x": 10,
|
||||
"y": 0
|
||||
},
|
||||
"speed": 50,
|
||||
"speedVar": 10,
|
||||
"radialAccel": 0,
|
||||
"radialAccelVar": 0,
|
||||
"tangentialAccel": 35.56999969482422,
|
||||
"tangentialAccelVar": 35.56999969482422,
|
||||
"rotationIsDir": false,
|
||||
"startRadius": 0,
|
||||
"startRadiusVar": 0,
|
||||
"endRadius": 0,
|
||||
"endRadiusVar": 0,
|
||||
"rotatePerS": 0,
|
||||
"rotatePerSVar": 0,
|
||||
"spriteFrameUuid": ""
|
||||
}
|
||||
}
|
||||
BIN
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/particle/Leaves.png
Normal file
BIN
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/particle/Leaves.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"ver": "1.0.25",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "e776aea7-74af-4434-9abd-04d2691118f3",
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "e776aea7-74af-4434-9abd-04d2691118f3@6c48a",
|
||||
"displayName": "Leaves",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"userData": {
|
||||
"wrapModeS": "clamp-to-edge",
|
||||
"wrapModeT": "clamp-to-edge",
|
||||
"imageUuidOrDatabaseUri": "e776aea7-74af-4434-9abd-04d2691118f3",
|
||||
"isUuid": true,
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"anisotropy": 0,
|
||||
"visible": false
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"f9941": {
|
||||
"importer": "sprite-frame",
|
||||
"uuid": "e776aea7-74af-4434-9abd-04d2691118f3@f9941",
|
||||
"displayName": "Leaves",
|
||||
"id": "f9941",
|
||||
"name": "spriteFrame",
|
||||
"userData": {
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 91,
|
||||
"height": 91,
|
||||
"rawWidth": 91,
|
||||
"rawHeight": 91,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"packable": true,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "e776aea7-74af-4434-9abd-04d2691118f3@6c48a",
|
||||
"atlasUuid": "",
|
||||
"pixelsToUnit": 100,
|
||||
"pivotX": 0.5,
|
||||
"pivotY": 0.5,
|
||||
"meshType": 0,
|
||||
"vertices": {
|
||||
"rawPosition": [
|
||||
-45.5,
|
||||
-45.5,
|
||||
0,
|
||||
45.5,
|
||||
-45.5,
|
||||
0,
|
||||
-45.5,
|
||||
45.5,
|
||||
0,
|
||||
45.5,
|
||||
45.5,
|
||||
0
|
||||
],
|
||||
"indexes": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
3
|
||||
],
|
||||
"uv": [
|
||||
0,
|
||||
91,
|
||||
91,
|
||||
91,
|
||||
0,
|
||||
0,
|
||||
91,
|
||||
0
|
||||
],
|
||||
"nuv": [
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"minPos": [
|
||||
-45.5,
|
||||
-45.5,
|
||||
0
|
||||
],
|
||||
"maxPos": [
|
||||
45.5,
|
||||
45.5,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"ver": "1.0.11",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"type": "sprite-frame",
|
||||
"fixAlphaTransparencyArtifacts": false,
|
||||
"hasAlpha": true,
|
||||
"redirect": "e776aea7-74af-4434-9abd-04d2691118f3@f9941"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"__type__": "cc.RenderTexture",
|
||||
"content": {
|
||||
"base": "2,2,0,0,0,0",
|
||||
"w": 960,
|
||||
"h": 640,
|
||||
"n": ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"ver": "1.2.2",
|
||||
"importer": "render-texture",
|
||||
"imported": true,
|
||||
"uuid": "9c3957c9-b1df-4660-b532-96a04c111609",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {
|
||||
"f9941": {
|
||||
"importer": "rt-sprite-frame",
|
||||
"uuid": "9c3957c9-b1df-4660-b532-96a04c111609@f9941",
|
||||
"displayName": "render-texture",
|
||||
"id": "f9941",
|
||||
"name": "spriteFrame",
|
||||
"userData": {
|
||||
"imageUuidOrDatabaseUri": "9c3957c9-b1df-4660-b532-96a04c111609",
|
||||
"width": 960,
|
||||
"height": 640
|
||||
},
|
||||
"ver": "1.0.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"width": 960,
|
||||
"height": 640,
|
||||
"anisotropy": 0,
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"redirect": "9c3957c9-b1df-4660-b532-96a04c111609@f9941"
|
||||
}
|
||||
}
|
||||
12
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/spineboy.meta
Normal file
12
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/spineboy.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"ver": "1.1.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "b3d2252d-aada-4948-8ae4-d90baed6909d",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"compressionType": {},
|
||||
"isRemoteBundle": {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
// Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd.
|
||||
CCEffect %{
|
||||
techniques:
|
||||
- passes:
|
||||
- vert: sprite-vs:vert
|
||||
frag: sprite-fs:frag
|
||||
depthStencilState:
|
||||
depthTest: false
|
||||
depthWrite: false
|
||||
blendState:
|
||||
targets:
|
||||
- blend: true
|
||||
blendSrc: src_alpha
|
||||
blendDst: one_minus_src_alpha
|
||||
blendDstAlpha: one_minus_src_alpha
|
||||
rasterizerState:
|
||||
cullMode: none
|
||||
properties:
|
||||
alphaThreshold: { value: 0.5 }
|
||||
texSize: {value: [500.0,500.0],editor: {tooltip: "节点尺寸"}}
|
||||
radius: {value: 0.0}
|
||||
texAlpha: {value: 1.0}
|
||||
x_count: {value: 1.0}
|
||||
y_count: {value: 1.0}
|
||||
}%
|
||||
|
||||
CCProgram sprite-vs %{
|
||||
precision highp float;
|
||||
#include <builtin/uniforms/cc-global>
|
||||
#if USE_LOCAL
|
||||
#include <builtin/uniforms/cc-local>
|
||||
#endif
|
||||
#if SAMPLE_FROM_RT
|
||||
#include <common/common-define>
|
||||
#endif
|
||||
in vec3 a_position;
|
||||
in vec2 a_texCoord;
|
||||
in vec4 a_color;
|
||||
|
||||
out vec4 color;
|
||||
out vec2 uv0;
|
||||
|
||||
vec4 vert () {
|
||||
vec4 pos = vec4(a_position, 1);
|
||||
|
||||
#if USE_LOCAL
|
||||
pos = cc_matWorld * pos;
|
||||
#endif
|
||||
|
||||
#if USE_PIXEL_ALIGNMENT
|
||||
pos = cc_matView * pos;
|
||||
pos.xyz = floor(pos.xyz);
|
||||
pos = cc_matProj * pos;
|
||||
#else
|
||||
pos = cc_matViewProj * pos;
|
||||
#endif
|
||||
|
||||
uv0 = a_texCoord;
|
||||
#if SAMPLE_FROM_RT
|
||||
CC_HANDLE_RT_SAMPLE_FLIP(uv0);
|
||||
#endif
|
||||
color = a_color;
|
||||
|
||||
return pos;
|
||||
}
|
||||
}%
|
||||
|
||||
CCProgram sprite-fs %{
|
||||
precision highp float;
|
||||
#include <builtin/internal/embedded-alpha>
|
||||
#include <builtin/internal/alpha-test>
|
||||
#include <builtin/uniforms/cc-global>
|
||||
uniform ARGS {
|
||||
vec2 texSize;
|
||||
float radius;
|
||||
float texAlpha;
|
||||
float x_count;
|
||||
float y_count;
|
||||
};
|
||||
|
||||
// 定义无理数
|
||||
#pragma define e 2.718281828459045
|
||||
|
||||
// 定义标准方差值(方差值越大,越模糊,但是需要计算的高斯矩阵范围会变大,从而带来巨大的计算量
|
||||
#pragma define stDev 1.5
|
||||
|
||||
// 定义π
|
||||
#pragma define pi 3.141592653589793
|
||||
in vec4 color;
|
||||
#if USE_TEXTURE
|
||||
in vec2 uv0;
|
||||
#pragma builtin(local)
|
||||
layout(set = 2, binding = 11) uniform sampler2D cc_spriteTexture;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* 获取权重(对应二维高斯函数公式,见 https://zh.wikipedia.org/wiki/%E9%AB%98%E6%96%AF%E6%A8%A1%E7%B3%8A )
|
||||
*/
|
||||
float getWeight(float x, float y) {
|
||||
return (1.0 / (2.0 * pi * pow(stDev, 2.0))) * pow(1.0 / e, (pow(x, 2.0) + pow(y, 2.0)) / (2.0 * pow(stDev, 2.0)));
|
||||
}
|
||||
|
||||
vec2 getUvMapPos() {
|
||||
float block_w = 1.0 / x_count;
|
||||
float block_x_idx = floor(uv0.x / block_w);
|
||||
|
||||
float block_h = 1.0 / y_count;
|
||||
float block_y_idx = floor(uv0.y / block_h);
|
||||
|
||||
return vec2(block_w * (block_x_idx + 0.5), block_h * (block_y_idx + 0.5));
|
||||
}
|
||||
vec4 frag () {
|
||||
vec4 o = vec4(0, 0, 0, 0);
|
||||
|
||||
#if USE_TEXTURE
|
||||
o *= CCSampleWithAlphaSeparated(cc_spriteTexture, uv0);
|
||||
#if IS_GRAY
|
||||
float gray = 0.2126 * o.r + 0.7152 * o.g + 0.0722 * o.b;
|
||||
o.r = o.g = o.b = gray;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// o *= color;
|
||||
// ALPHA_TEST(o);
|
||||
|
||||
// const mediump float rd = 10.0;
|
||||
vec4 col = vec4(0.);
|
||||
// float sum = 0.0;
|
||||
|
||||
|
||||
float circle = radius * radius;
|
||||
vec2 center = vec2(0.5);
|
||||
float rx = (uv0.x - center.x);
|
||||
float ry = uv0.y - center.y;
|
||||
float dis = rx * rx + ry * ry;
|
||||
// float a = smoothstep(dis, dis - 0.1, circle);
|
||||
if (dis <= circle) {
|
||||
discard;
|
||||
}
|
||||
|
||||
// 根据高斯分布(也叫正态分布),在3个标准差范围内的分布比例占到99%的权重,因此我们只需要计算矩阵范围 [6 * stDev + 1, 6 * stDev +1] 上的权重
|
||||
|
||||
const highp float size = floor(stDev * 6.0 + 1.0);
|
||||
const highp float halfSize = floor(size / 2.0);
|
||||
|
||||
//计算高斯矩阵上所有权重的和
|
||||
|
||||
// 原点
|
||||
float totalWeight = getWeight(0.0, 0.0);
|
||||
|
||||
// X轴正方向上的权重 * 2.0 就是整个X轴上的权重
|
||||
for(float x = 1.0; x <= halfSize; x++) {
|
||||
totalWeight += getWeight(x, 0.0) * 2.0;
|
||||
}
|
||||
// Y轴正方向上的权重 * 2.0 就是整个Y轴上的权重
|
||||
for(float y = 1.0; y <= halfSize; y++) {
|
||||
totalWeight += getWeight(0.0, y) * 2.0;
|
||||
}
|
||||
// 第一象限的权重 * 4.0 就是4个象限的权重
|
||||
for(float x = 1.0; x <= halfSize; x++) {
|
||||
for (float y = 1.0; y<= halfSize; y++) {
|
||||
totalWeight += getWeight(x, y) * 4.0;
|
||||
}
|
||||
}
|
||||
|
||||
// 采样周边像素并应用加权平均值,得出最终像素值
|
||||
vec4 finalColor = vec4(0.0, 0.0, 0.0, 0.0);
|
||||
// float divider = 0.01;
|
||||
float onePxWidth = 1.0 / texSize.x;
|
||||
float onePxHeight = 1.0 / texSize.y;
|
||||
// vec2 realPos = getUvMapPos();
|
||||
// o *= CCSampleWithAlphaSeparated(cc_spriteTexture, realPos);
|
||||
for(float x = -halfSize; x<= halfSize; x++) {
|
||||
for (float y = -halfSize; y<= halfSize; y++) {
|
||||
// 求出对应坐标的真正权重(对应权重矩阵)
|
||||
float weight = getWeight(x, y) / totalWeight;
|
||||
|
||||
// 求出对应坐标像素颜色值的加权值
|
||||
finalColor += CCSampleWithAlphaSeparated(cc_spriteTexture, uv0 + vec2(onePxWidth * x, onePxHeight * y)) * weight;
|
||||
}
|
||||
}
|
||||
|
||||
// o *= finalColor;
|
||||
o = finalColor;
|
||||
o.a *= texAlpha;
|
||||
// }
|
||||
// col.a = color.a;
|
||||
// #if USE_TRAMSFORM
|
||||
// #endif
|
||||
return o;
|
||||
}
|
||||
}%
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.6.0",
|
||||
"importer": "effect",
|
||||
"imported": true,
|
||||
"uuid": "a49e1464-71b2-4710-aec0-2a54c07dcba5",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
2412
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/spineboy/spineboy.json
Normal file
2412
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/spineboy/spineboy.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.2.6",
|
||||
"importer": "spine-data",
|
||||
"imported": true,
|
||||
"uuid": "32b7f1b6-c6ac-41be-b431-b52185fe0317",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
BIN
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/spineboy/spineboy.png
Normal file
BIN
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/spineboy/spineboy.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 215 KiB |
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"ver": "1.0.25",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "cf2ec14e-6fdb-4e29-bfbb-63031823d9f1",
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "cf2ec14e-6fdb-4e29-bfbb-63031823d9f1@6c48a",
|
||||
"displayName": "spineboy",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"anisotropy": 0,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "cf2ec14e-6fdb-4e29-bfbb-63031823d9f1",
|
||||
"visible": true
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"hasAlpha": true,
|
||||
"type": "texture",
|
||||
"redirect": "cf2ec14e-6fdb-4e29-bfbb-63031823d9f1@6c48a",
|
||||
"fixAlphaTransparencyArtifacts": false
|
||||
}
|
||||
}
|
||||
195
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/spineboy/spineboy.txt
Normal file
195
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/spineboy/spineboy.txt
Normal file
@@ -0,0 +1,195 @@
|
||||
|
||||
spineboy.png
|
||||
size:1024,256
|
||||
format: RGBA8888
|
||||
filter: Linear,Linear
|
||||
repeat: none
|
||||
eye_indifferent
|
||||
rotate: true
|
||||
xy: 389, 5
|
||||
size: 56, 53
|
||||
orig: 56, 53
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
eye_surprised
|
||||
rotate: false
|
||||
xy: 580, 34
|
||||
size: 56, 53
|
||||
orig: 56, 53
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
front_bracer
|
||||
rotate: false
|
||||
xy: 732, 85
|
||||
size: 35, 48
|
||||
orig: 35, 48
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
front_fist_closed
|
||||
rotate: false
|
||||
xy: 556, 91
|
||||
size: 45, 49
|
||||
orig: 45, 49
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
front_fist_open
|
||||
rotate: false
|
||||
xy: 668, 32
|
||||
size: 52, 52
|
||||
orig: 52, 52
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
front_foot
|
||||
rotate: false
|
||||
xy: 924, 201
|
||||
size: 76, 41
|
||||
orig: 76, 41
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
front_foot_bend1
|
||||
rotate: false
|
||||
xy: 845, 200
|
||||
size: 77, 42
|
||||
orig: 77, 42
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
front_foot_bend2
|
||||
rotate: false
|
||||
xy: 778, 186
|
||||
size: 65, 56
|
||||
orig: 65, 56
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
front_shin
|
||||
rotate: true
|
||||
xy: 444, 91
|
||||
size: 49, 110
|
||||
orig: 49, 110
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
front_thigh
|
||||
rotate: true
|
||||
xy: 603, 89
|
||||
size: 29, 67
|
||||
orig: 29, 67
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
front_upper_arm
|
||||
rotate: true
|
||||
xy: 672, 86
|
||||
size: 32, 58
|
||||
orig: 32, 58
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
goggles
|
||||
rotate: false
|
||||
xy: 444, 142
|
||||
size: 157, 100
|
||||
orig: 157, 100
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
gun
|
||||
rotate: false
|
||||
xy: 603, 120
|
||||
size: 126, 122
|
||||
orig: 126, 122
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
head
|
||||
rotate: false
|
||||
xy: 279, 63
|
||||
size: 163, 179
|
||||
orig: 163, 179
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
mouth_grind
|
||||
rotate: false
|
||||
xy: 845, 163
|
||||
size: 56, 35
|
||||
orig: 56, 35
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
mouth_oooo
|
||||
rotate: false
|
||||
xy: 842, 126
|
||||
size: 56, 35
|
||||
orig: 56, 35
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
mouth_smile
|
||||
rotate: false
|
||||
xy: 769, 97
|
||||
size: 56, 35
|
||||
orig: 56, 35
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
muzzle
|
||||
rotate: false
|
||||
xy: 2, 2
|
||||
size: 275, 240
|
||||
orig: 277, 240
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
neck
|
||||
rotate: false
|
||||
xy: 903, 173
|
||||
size: 22, 25
|
||||
orig: 22, 25
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
rear_bracer
|
||||
rotate: false
|
||||
xy: 722, 40
|
||||
size: 34, 43
|
||||
orig: 34, 43
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
rear_foot
|
||||
rotate: false
|
||||
xy: 444, 11
|
||||
size: 68, 36
|
||||
orig: 68, 36
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
rear_foot_bend1
|
||||
rotate: false
|
||||
xy: 444, 49
|
||||
size: 70, 40
|
||||
orig: 70, 40
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
rear_foot_bend2
|
||||
rotate: false
|
||||
xy: 778, 134
|
||||
size: 62, 50
|
||||
orig: 62, 50
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
rear_shin
|
||||
rotate: false
|
||||
xy: 731, 135
|
||||
size: 45, 107
|
||||
orig: 45, 107
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
rear_thigh
|
||||
rotate: true
|
||||
xy: 516, 50
|
||||
size: 39, 62
|
||||
orig: 39, 62
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
rear_upper_arm
|
||||
rotate: false
|
||||
xy: 638, 35
|
||||
size: 28, 52
|
||||
orig: 28, 52
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
torso
|
||||
rotate: true
|
||||
xy: 279, 2
|
||||
size: 59, 108
|
||||
orig: 59, 108
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.0.1",
|
||||
"importer": "text",
|
||||
"imported": true,
|
||||
"uuid": "58a19969-b3cc-4e47-9fe4-bd8611c451a8",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
12
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/texture.meta
Normal file
12
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/texture.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"ver": "1.1.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "d6908a46-7009-4681-ac11-2099e87dc5ec",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"compressionType": {},
|
||||
"isRemoteBundle": {}
|
||||
}
|
||||
}
|
||||
BIN
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/texture/avatar.jpeg
Normal file
BIN
demo/2dP2/Creator3.6.2_2D_Blur/assets/res/texture/avatar.jpeg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 67 KiB |
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"ver": "1.0.25",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "2bebd0bb-92d3-442f-b714-26d0299af3db",
|
||||
"files": [
|
||||
".jpeg",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "2bebd0bb-92d3-442f-b714-26d0299af3db@6c48a",
|
||||
"displayName": "avatar",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"userData": {
|
||||
"wrapModeS": "clamp-to-edge",
|
||||
"wrapModeT": "clamp-to-edge",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"anisotropy": 0,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "2bebd0bb-92d3-442f-b714-26d0299af3db",
|
||||
"visible": false
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"f9941": {
|
||||
"importer": "sprite-frame",
|
||||
"uuid": "2bebd0bb-92d3-442f-b714-26d0299af3db@f9941",
|
||||
"displayName": "avatar",
|
||||
"id": "f9941",
|
||||
"name": "spriteFrame",
|
||||
"userData": {
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 589,
|
||||
"height": 588,
|
||||
"rawWidth": 589,
|
||||
"rawHeight": 588,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"packable": true,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "2bebd0bb-92d3-442f-b714-26d0299af3db@6c48a",
|
||||
"atlasUuid": "",
|
||||
"pixelsToUnit": 100,
|
||||
"pivotX": 0.5,
|
||||
"pivotY": 0.5,
|
||||
"meshType": 0,
|
||||
"vertices": {
|
||||
"rawPosition": [
|
||||
-294.5,
|
||||
-294,
|
||||
0,
|
||||
294.5,
|
||||
-294,
|
||||
0,
|
||||
-294.5,
|
||||
294,
|
||||
0,
|
||||
294.5,
|
||||
294,
|
||||
0
|
||||
],
|
||||
"indexes": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
3
|
||||
],
|
||||
"uv": [
|
||||
0,
|
||||
588,
|
||||
589,
|
||||
588,
|
||||
0,
|
||||
0,
|
||||
589,
|
||||
0
|
||||
],
|
||||
"nuv": [
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"minPos": [
|
||||
-294.5,
|
||||
-294,
|
||||
0
|
||||
],
|
||||
"maxPos": [
|
||||
294.5,
|
||||
294,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"ver": "1.0.11",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"hasAlpha": false,
|
||||
"type": "sprite-frame",
|
||||
"redirect": "2bebd0bb-92d3-442f-b714-26d0299af3db@f9941",
|
||||
"fixAlphaTransparencyArtifacts": false
|
||||
}
|
||||
}
|
||||
8
demo/2dP2/Creator3.6.2_2D_Blur/package.json
Normal file
8
demo/2dP2/Creator3.6.2_2D_Blur/package.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"creator": {
|
||||
"version": "3.6.2"
|
||||
},
|
||||
"name": "Creator3.4.2_PartialBlur",
|
||||
"uuid": "ef462df0-c908-45e7-a601-858c60e6cfea",
|
||||
"version": "3.6.2"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"__version__": "1.3.3"
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"__version__": "3.0.4",
|
||||
"game": {
|
||||
"name": "未知游戏",
|
||||
"app_id": "UNKNOW",
|
||||
"c_id": "0"
|
||||
},
|
||||
"appConfigMaps": [
|
||||
{
|
||||
"app_id": "UNKNOW",
|
||||
"config_id": "04e1dd"
|
||||
}
|
||||
],
|
||||
"configs": [
|
||||
{
|
||||
"app_id": "UNKNOW",
|
||||
"config_id": "04e1dd",
|
||||
"config_name": "Default",
|
||||
"config_remarks": "",
|
||||
"services": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"__version__": "1.0.1"
|
||||
}
|
||||
138
demo/2dP2/Creator3.6.2_2D_Blur/settings/v2/packages/engine.json
Normal file
138
demo/2dP2/Creator3.6.2_2D_Blur/settings/v2/packages/engine.json
Normal file
@@ -0,0 +1,138 @@
|
||||
{
|
||||
"__version__": "1.0.7",
|
||||
"macroConfig": {
|
||||
"CLEANUP_IMAGE_CACHE": true,
|
||||
"BATCHER2D_MEM_INCREMENT": 2303
|
||||
},
|
||||
"modules": {
|
||||
"cache": {
|
||||
"base": {
|
||||
"_value": true
|
||||
},
|
||||
"graphcis": {
|
||||
"_value": true
|
||||
},
|
||||
"gfx-webgl": {
|
||||
"_value": true
|
||||
},
|
||||
"gfx-webgl2": {
|
||||
"_value": true
|
||||
},
|
||||
"animation": {
|
||||
"_value": true
|
||||
},
|
||||
"skeletal-animation": {
|
||||
"_value": true
|
||||
},
|
||||
"3d": {
|
||||
"_value": true
|
||||
},
|
||||
"2d": {
|
||||
"_value": true
|
||||
},
|
||||
"ui": {
|
||||
"_value": true
|
||||
},
|
||||
"particle": {
|
||||
"_value": true
|
||||
},
|
||||
"physics": {
|
||||
"_value": true,
|
||||
"_option": "physics-ammo"
|
||||
},
|
||||
"physics-ammo": {
|
||||
"_value": true
|
||||
},
|
||||
"physics-cannon": {
|
||||
"_value": true
|
||||
},
|
||||
"physics-physx": {
|
||||
"_value": true
|
||||
},
|
||||
"physics-builtin": {
|
||||
"_value": true
|
||||
},
|
||||
"physics-2d": {
|
||||
"_value": true,
|
||||
"_option": "physics-2d-box2d"
|
||||
},
|
||||
"physics-2d-box2d": {
|
||||
"_value": true
|
||||
},
|
||||
"physics-2d-builtin": {
|
||||
"_value": true
|
||||
},
|
||||
"intersection-2d": {
|
||||
"_value": true
|
||||
},
|
||||
"primitive": {
|
||||
"_value": true
|
||||
},
|
||||
"profiler": {
|
||||
"_value": true
|
||||
},
|
||||
"particle-2d": {
|
||||
"_value": true
|
||||
},
|
||||
"audio": {
|
||||
"_value": true
|
||||
},
|
||||
"video": {
|
||||
"_value": true
|
||||
},
|
||||
"webview": {
|
||||
"_value": true
|
||||
},
|
||||
"tween": {
|
||||
"_value": true
|
||||
},
|
||||
"terrain": {
|
||||
"_value": true
|
||||
},
|
||||
"tiled-map": {
|
||||
"_value": true
|
||||
},
|
||||
"spine": {
|
||||
"_value": true
|
||||
},
|
||||
"dragon-bones": {
|
||||
"_value": true
|
||||
},
|
||||
"marionette": {
|
||||
"_value": true
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
"includeModules": [
|
||||
"2d",
|
||||
"3d",
|
||||
"animation",
|
||||
"audio",
|
||||
"base",
|
||||
"dragon-bones",
|
||||
"gfx-webgl",
|
||||
"gfx-webgl2",
|
||||
"intersection-2d",
|
||||
"marionette",
|
||||
"particle",
|
||||
"particle-2d",
|
||||
"physics-2d-box2d",
|
||||
"physics-ammo",
|
||||
"primitive",
|
||||
"profiler",
|
||||
"skeletal-animation",
|
||||
"spine",
|
||||
"terrain",
|
||||
"tiled-map",
|
||||
"tween",
|
||||
"ui",
|
||||
"video",
|
||||
"webview",
|
||||
"xr"
|
||||
],
|
||||
"noDeprecatedFeatures": {
|
||||
"value": false,
|
||||
"version": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"__version__": "1.0.0"
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"__version__": "1.0.2",
|
||||
"layer": [
|
||||
{
|
||||
"name": "capture",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"fbx": {
|
||||
"legacyFbxImporter": {
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
"general": {
|
||||
"designResolution": {
|
||||
"fitHeight": true
|
||||
}
|
||||
}
|
||||
}
|
||||
9
demo/2dP2/Creator3.6.2_2D_Blur/tsconfig.json
Normal file
9
demo/2dP2/Creator3.6.2_2D_Blur/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
/* Base configuration. Do not edit this field. */
|
||||
"extends": "./temp/tsconfig.cocos.json",
|
||||
|
||||
/* Add your custom configuration here. */
|
||||
"compilerOptions": {
|
||||
"strict": false
|
||||
}
|
||||
}
|
||||
BIN
gif/202212/2022120201.gif
Normal file
BIN
gif/202212/2022120201.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
Reference in New Issue
Block a user