Skip to content

Commit

Permalink
chore: remove GUIHelp from src
Browse files Browse the repository at this point in the history
  • Loading branch information
lslzl3000 committed Dec 8, 2023
1 parent 24afa9d commit 5a5713d
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 66 deletions.
3 changes: 1 addition & 2 deletions src/components/anim/AnimatorComponent.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { GUIHelp } from "@orillusion/debug/GUIHelp";
import { BoxGeometry, DEGREES_TO_RADIANS, Engine3D, LitMaterial, Matrix4, MeshFilter, MeshRenderer, Object3D, PrefabAvatarData, Quaternion, RenderNode, RendererBase, Skeleton, SkeletonPose, SkinnedMeshRenderer2, StorageGPUBuffer, Time, Vector2, Vector3, Vector4, View3D, makeMatrix44 } from "../..";
import { Engine3D, Matrix4, Object3D, PrefabAvatarData, Quaternion, RenderNode, SkinnedMeshRenderer2, StorageGPUBuffer, Time, Vector3, Vector4, View3D } from "../..";
import { PropertyAnimationClip } from "../../math/AnimationCurveClip";
import { RegisterComponent } from "../../util/SerializeDecoration";
import { ComponentBase } from "../ComponentBase";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ClusterLightingBuffer } from './ClusterLightingBuffer';
import { ClusterBoundsSource_cs } from '../../../../assets/shader/cluster/ClusterBoundsSource_cs';
import { ClusterLighting_cs } from '../../../../assets/shader/cluster/ClusterLighting_cs';
import { Camera3D, ClusterConfig, Color, Vector3, Vector4 } from '../../../..';
import { GUIHelp } from '@orillusion/debug/GUIHelp';
// import { GUIHelp } from '@orillusion/debug/GUIHelp';
/**
* @internal
* @group Post
Expand Down
78 changes: 39 additions & 39 deletions src/loader/parser/prefab/mats/shader/LitHairShader.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GUIHelp } from "@orillusion/debug/GUIHelp";
// import { GUIHelp } from "@orillusion/debug/GUIHelp";
import { ShaderLib } from "../../../../../assets/shader/ShaderLib";
import { GPUCullMode } from "../../../../../gfx/graphics/webGpu/WebGPUConst";
import { Texture } from "../../../../../gfx/graphics/webGpu/core/texture/Texture";
Expand Down Expand Up @@ -73,44 +73,44 @@ export class LitHairShader extends Shader {
}

public debug() {
GUIHelp.addFolder("Hair");
GUIHelp.addColor({ HairColorStart: new Color() }, "HairColorStart").onChange((v) => {
let c = new Color();
c.copyFromArray(v);
this._HairColor0 = c;
});

GUIHelp.addColor({ HairColorEnd: new Color() }, "HairColorEnd").onChange((v) => {
let c = new Color();
c.copyFromArray(v);
this._HairColor1 = c;
});

GUIHelp.addColor({ specularColor: new Color() }, "specularColor").onChange((v) => {
let c = new Color();
c.copyFromArray(v);
this._SpecularColor = c;
});

GUIHelp.add({ roughness: 1 }, "roughness", 0.0, 1.0).onChange((v) => {
this._Roughness = v;
});
GUIHelp.add({ metallic: 1 }, "metallic", 0.0, 1.0).onChange((v) => {
this._Metallic = v;
});

GUIHelp.add({ alphaCutoff: 1 }, "alphaCutoff", 0.0, 1.0).onChange((v) => {
this._AlphaCutoff = v;
});

GUIHelp.add({ backlit: 1 }, "backlit", 0.0, 1.0, 0.0001).onChange((v) => {
this._BackLit = v;
});

GUIHelp.add({ area: 0.1 }, "area", 0.0, 1.0, 0.0001).onChange((v) => {
this._Area = v;
});
GUIHelp.endFolder();
// GUIHelp.addFolder("Hair");
// GUIHelp.addColor({ HairColorStart: new Color() }, "HairColorStart").onChange((v) => {
// let c = new Color();
// c.copyFromArray(v);
// this._HairColor0 = c;
// });

// GUIHelp.addColor({ HairColorEnd: new Color() }, "HairColorEnd").onChange((v) => {
// let c = new Color();
// c.copyFromArray(v);
// this._HairColor1 = c;
// });

// GUIHelp.addColor({ specularColor: new Color() }, "specularColor").onChange((v) => {
// let c = new Color();
// c.copyFromArray(v);
// this._SpecularColor = c;
// });

// GUIHelp.add({ roughness: 1 }, "roughness", 0.0, 1.0).onChange((v) => {
// this._Roughness = v;
// });
// GUIHelp.add({ metallic: 1 }, "metallic", 0.0, 1.0).onChange((v) => {
// this._Metallic = v;
// });

// GUIHelp.add({ alphaCutoff: 1 }, "alphaCutoff", 0.0, 1.0).onChange((v) => {
// this._AlphaCutoff = v;
// });

// GUIHelp.add({ backlit: 1 }, "backlit", 0.0, 1.0, 0.0001).onChange((v) => {
// this._BackLit = v;
// });

// GUIHelp.add({ area: 0.1 }, "area", 0.0, 1.0, 0.0001).onChange((v) => {
// this._Area = v;
// });
// GUIHelp.endFolder();
}

public setDefault() {
Expand Down
48 changes: 24 additions & 24 deletions src/loader/parser/prefab/mats/shader/LitSSSShader.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Color } from "../../../../../math/Color";
import { Vector4 } from "../../../../../math/Vector4";
import { GUIHelp } from "@orillusion/debug/GUIHelp";
// import { GUIHelp } from "@orillusion/debug/GUIHelp";
import { RegisterShader } from "../../../../../util/SerializeDecoration";
import { Shader } from "../../../../../gfx/graphics/webGpu/shader/Shader";
import { PBRLitSSSShader } from "../../../../../assets/shader/materials/PBRLitSSSShader";
Expand Down Expand Up @@ -44,29 +44,29 @@ export class LitSSSShader extends Shader {
}

public debug() {
GUIHelp.addFolder("face");
GUIHelp.addColor({ SkinColor: new Color() }, "SkinColor").onChange((v) => {
let newColor = new Color();
newColor.copyFromArray(v);
this._SkinColor = newColor;
});
GUIHelp.add({ skinPower: 1 }, "skinPower", 0.0, 10.0).onChange((v) => {
this._SkinPower = v;
});
GUIHelp.add({ skinColorIns: 1 }, "skinColorIns", 0.0, 10.0).onChange((v) => {
this._SkinColorIns = v;
});
GUIHelp.add({ roughness: 1 }, "roughness", 0.0, 1.0).onChange((v) => {
this._Roughness = v;
});
GUIHelp.add({ metallic: 1 }, "metallic", 0.0, 1.0).onChange((v) => {
this._Metallic = v;
});
GUIHelp.add({ curveFactor: 1 }, "curveFactor", 0.0, 10.0).onChange((v) => {
this.curveFactor = v;
});

GUIHelp.endFolder();
// GUIHelp.addFolder("face");
// GUIHelp.addColor({ SkinColor: new Color() }, "SkinColor").onChange((v) => {
// let newColor = new Color();
// newColor.copyFromArray(v);
// this._SkinColor = newColor;
// });
// GUIHelp.add({ skinPower: 1 }, "skinPower", 0.0, 10.0).onChange((v) => {
// this._SkinPower = v;
// });
// GUIHelp.add({ skinColorIns: 1 }, "skinColorIns", 0.0, 10.0).onChange((v) => {
// this._SkinColorIns = v;
// });
// GUIHelp.add({ roughness: 1 }, "roughness", 0.0, 1.0).onChange((v) => {
// this._Roughness = v;
// });
// GUIHelp.add({ metallic: 1 }, "metallic", 0.0, 1.0).onChange((v) => {
// this._Metallic = v;
// });
// GUIHelp.add({ curveFactor: 1 }, "curveFactor", 0.0, 10.0).onChange((v) => {
// this.curveFactor = v;
// });

// GUIHelp.endFolder();
}

public setDefault() {
Expand Down

0 comments on commit 5a5713d

Please sign in to comment.