MCPcopy Index your code
hub / github.com/PavelDoGreat/WebGL-Fluid-Simulation / initSunraysFramebuffers

Function initSunraysFramebuffers

script.js:1034–1043  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1032}
1033
1034function initSunraysFramebuffers () {
1035 let res = getResolution(config.SUNRAYS_RESOLUTION);
1036
1037 const texType = ext.halfFloatTexType;
1038 const r = ext.formatR;
1039 const filtering = ext.supportLinearFiltering ? gl.LINEAR : gl.NEAREST;
1040
1041 sunrays = createFBO(res.width, res.height, r.internalFormat, r.format, texType, filtering);
1042 sunraysTemp = createFBO(res.width, res.height, r.internalFormat, r.format, texType, filtering);
1043}
1044
1045function createFBO (w, h, internalFormat, format, type, param) {
1046 gl.activeTexture(gl.TEXTURE0);

Callers 1

initFramebuffersFunction · 0.85

Calls 2

getResolutionFunction · 0.85
createFBOFunction · 0.85

Tested by

no test coverage detected