PageSourceSearch

https://aminedirohf-async-grpo-mini-swe-agent-moe.hf.space/assets/hemisphericLight-DUUZAi58.js

js aminedirohf-async-grpo-mini-swe-agent-moe.hf.space collected 2026-10-04 16:39:56 UTC 1,776 bytes, 1 lines download raw bytes

vendor: 1,776 bytes, line 1
1import{_ as n,d as u,a as d}from"./bufferUtils-DTRdUD8L.js";import{V as o,M as m}from"./math.vector-C1xyPDEl.js";import{Color3 as h}from"./math.color-CzLaKyb6.js";import{N as c}from"./node-C-Iu0ALa.js";import{L as a}from"./light-DT53MGnW.js";import{R as p}from"./math.scalar.functions-DkeaWAWz.js";import"./decorators.serialization-C7d7ykGG.js";import"./lightConstants-B1TSTh-k.js";import"./tools-D01N7ptR.js";c.AddNodeConstructor("Light_Type_3",(s,r)=>()=>new e(s,o.Zero(),r));class e extends a{constructor(r,i,t,f){super(r,t,f),this.groundColor=new h(0,0,0),this.direction=i||o.Up()}_buildUniformLayout(){this._uniformBuffer.addUniform("vLightData",4),this._uniformBuffer.addUniform("vLightDiffuse",4),this._uniformBuffer.addUniform("vLightSpecular",4),this._uniformBuffer.addUniform("vLightGround",3),this._uniformBuffer.addUniform("shadowsInfo",3),this._uniformBuffer.addUniform("depthValues",2),this._uniformBuffer.create()}getClassName(){return"HemisphericLight"}setDirectionToTarget(r){return this.direction=o.Normalize(r.subtract(o.Zero())),this.direction}getShadowGenerator(){return null}transferToEffect(r,i){const t=o.Normalize(this.direction);return this._uniformBuffer.updateFloat4("vLightData",t.x,t.y,t.z,0,i),this._uniformBuffer.updateColor3("vLightGround",this.groundColor.scale(this.intensity),i),this}transferToNodeMaterialEffect(r,i){const t=o.Normalize(this.direction);return r.setFloat3(i,t.x,t.y,t.z),this}computeWorldMatrix(){return this._worldMatrix||(this._worldMatrix=m.Identity()),this._worldMatrix}getTypeID(){return a.LIGHTTYPEID_HEMISPHERICLIGHT}prepareLightSpecificDefines(r,i){r["HEMILIGHT"+i]=!0}}n([u()],e.prototype,"groundColor",void 0);n([d()],e.prototype,"direction",void 0);p("BABYLON.HemisphericLight",e);export{e as HemisphericLight};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.