先上主要代码: WaterMaterial.ts
import Shader3D = Laya.Shader3D;
import SubShader = Laya.SubShader;
import BaseTexture = Laya.BaseTexture;
export default class WaterMaterial extends Laya.Material {
public readonly MAIN_TEX: number = Shader3D.propertyNameToID("u_MainTex");
public readonly NOISE_TEX: number = Shader3D.propertyNameToID("u_NoiseTex");
constructor() {
super();
this.setShade