初步内发光实现

This commit is contained in:
caizhitao
2019-12-20 12:32:27 +08:00
parent 540992a719
commit 5f5e4a9287
5 changed files with 97 additions and 235 deletions

View File

@@ -26,7 +26,7 @@ export default class GlowInnerEffectScene extends cc.Component {
this.examplesParentNode.children.forEach(childNode => {
childNode.getComponents(cc.RenderComponent).forEach(renderComponent => {
let material: cc.Material = renderComponent.getMaterial(0);
material.setProperty("outlineSize", size);
material.setProperty("glowColorSize", size);
renderComponent.setMaterial(0, material);
});
});