From 3D, 2D to XR, from interactive games, education, to digital twins, Galacean can provide you with a one-stop solution.
Web-based interactive editor empowering modern developers with rich features and efficient operation to drive innovation.
.hdr
.fbx
.glb
mainstream model assets, as well as various types of texture files.const float PI = 3.1415926535897932384626433832795;
uniform vec3 lightDirection;
uniform vec3 lightColour;
uniform vec2 lightBias;
uniform mat4 projectionViewMatrix;
vec3 calcSpecularLighting(vec3 toCamVector, vec3 toLightVector, vec3 normal){
vec3 reflectedLightDirection = reflect(-toLightVector, normal);
float specularFactor = dot(reflectedLightDirection , toCamVector);
specularFactor = max(specularFactor,0.0);
specularFactor = pow(specularFactor, shineDamper);
return specularFactor * specularReflectivity * lightColour;
}
void main(void){
vec3 currentVertex = vec3(in_position.x, height, in_position.y);
vec3 vertex1 = currentVertex + vec3(in_indicators.x, 0.0, in_indicators.y);
vec3 vertex2 = currentVertex + vec3(in_indicators.z, 0.0, in_indicators.w);
}
*Test Environment: Macbook M2 Pro, Memory 16GB, Sonoma 14.4.1
*Test Environment: Macbook M2 Pro, Memory 16GB, Sonoma 14.4.1
*Data samples from the "Magical Ocean" project, as of May 2024