resources/assets/js/visualizers/asteroid/scripts/NoiseBlob.ts
Function initShader
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initShader () {
const screenRes = `vec2( ${this.w.toFixed(1)}, ${this.h.toFixed(1)})`
const load = (_vert, _frag) => new THREE.ShaderMaterial({
defines: {
File NoiseBlob.ts
has 276 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import * as THREE from 'three'
import type { ThreeSharedRenderer } from './ThreeSharedRenderer'
import type { ThreePBR } from './ThreePBR'
import type { ThreePointLight } from './ThreePointLight'
import type { AudioAnalyzer } from './AudioAnalyzer'
Function initScene
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initScene () {
const _sphere_size = 0.7
const _geom = new THREE.SphereGeometry(_sphere_size, 128, 128)
const _geom_lowres = new THREE.SphereGeometry(_sphere_size, 64, 64)
Function update
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update () {
const shaders = [
this.shaderMesh,
this.shaderWire,
this.shaderPoints,