mirror of
https://gitee.com/ruanwujing/green-pack-cocos
synced 2025-10-09 16:46:17 +00:00
添加新的sdf裁切形状示例;添加形状调节参数
This commit is contained in:
@@ -26,6 +26,14 @@
|
||||
}
|
||||
],
|
||||
"_props": [
|
||||
{}
|
||||
{
|
||||
"circleParams": {
|
||||
"__type__": "cc.Vec4",
|
||||
"x": 0.4,
|
||||
"y": 0.11,
|
||||
"z": -0.01,
|
||||
"w": 0
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
39
assets/resources/materials/color_sdf2d_heart.mtl
Normal file
39
assets/resources/materials/color_sdf2d_heart.mtl
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"__type__": "cc.Material",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_native": "",
|
||||
"_effectAsset": {
|
||||
"__uuid__": "fef16f75-0140-40d5-97b8-99185849b0e8",
|
||||
"__expectedType__": "cc.EffectAsset"
|
||||
},
|
||||
"_techIdx": 0,
|
||||
"_defines": [
|
||||
{
|
||||
"UP_SIDE_DOWN": true
|
||||
}
|
||||
],
|
||||
"_states": [
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"depthStencilState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"_props": [
|
||||
{
|
||||
"params": {
|
||||
"__type__": "cc.Vec4",
|
||||
"x": 0.6,
|
||||
"y": -0.2,
|
||||
"z": 0.11,
|
||||
"w": -0.01
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
11
assets/resources/materials/color_sdf2d_heart.mtl.meta
Normal file
11
assets/resources/materials/color_sdf2d_heart.mtl.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.0.21",
|
||||
"importer": "material",
|
||||
"imported": true,
|
||||
"uuid": "e6cd9948-ab5d-4816-8523-68f13f4ed20f",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
39
assets/resources/materials/color_sdf2d_star5.mtl
Normal file
39
assets/resources/materials/color_sdf2d_star5.mtl
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"__type__": "cc.Material",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_native": "",
|
||||
"_effectAsset": {
|
||||
"__uuid__": "254577e6-4c95-47b4-9cb2-36ec930c286d",
|
||||
"__expectedType__": "cc.EffectAsset"
|
||||
},
|
||||
"_techIdx": 0,
|
||||
"_defines": [
|
||||
{
|
||||
"USE_TEXTURE": true
|
||||
}
|
||||
],
|
||||
"_states": [
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"depthStencilState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"_props": [
|
||||
{
|
||||
"star5Params": {
|
||||
"__type__": "cc.Vec4",
|
||||
"x": 0.4,
|
||||
"y": 0.6,
|
||||
"z": 0.11,
|
||||
"w": -0.01
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
11
assets/resources/materials/color_sdf2d_star5.mtl.meta
Normal file
11
assets/resources/materials/color_sdf2d_star5.mtl.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.0.21",
|
||||
"importer": "material",
|
||||
"imported": true,
|
||||
"uuid": "25305096-8f75-413c-a292-5e3927bf0e3d",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
Reference in New Issue
Block a user