Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.07 KB

Shaders.md

File metadata and controls

46 lines (33 loc) · 1.07 KB

Shaders

In Effect, parameters are the binding between uniform variables and QML properties, in single item list, brackets can be ignored:

parameters: Parameter {
	name: "uniform"
	value: item.value
}
parameters: [
	Parameter {},
	Parameter {},
	Parameter {}
}

Tips:

  • The filepath of shaders does not accept qml relative paths, a filepath error may lead to program crash.
  1. Uniform binding:

  1. Setup size, count, offset, stride for one vertex buffer with several attributes: