giant rendering overhaul and many small fixes
This commit is contained in:
+5
-5
@@ -862,7 +862,7 @@ EffectPtr Effect::copy(ClipPtr c) {
|
||||
}
|
||||
|
||||
void Effect::process_shader(double timecode, GLTextureCoords&, int iteration) {
|
||||
glslProgram->setUniformValue("resolution", parent_clip->getWidth(), parent_clip->getHeight());
|
||||
glslProgram->setUniformValue("resolution", parent_clip->media_width(), parent_clip->media_height());
|
||||
glslProgram->setUniformValue("time", GLfloat(timecode));
|
||||
glslProgram->setUniformValue("iteration", iteration);
|
||||
|
||||
@@ -904,8 +904,8 @@ GLuint Effect::process_superimpose(double timecode) {
|
||||
bool dimensions_changed = false;
|
||||
bool redrew_image = false;
|
||||
|
||||
int width = parent_clip->getWidth();
|
||||
int height = parent_clip->getHeight();
|
||||
int width = parent_clip->media_width();
|
||||
int height = parent_clip->media_height();
|
||||
|
||||
if (width != img.width() || height != img.height()) {
|
||||
img = QImage(width, height, QImage::Format_RGBA8888_Premultiplied);
|
||||
@@ -1003,8 +1003,8 @@ void Effect::redraw(double) {
|
||||
painter_wrapper.painter = &p;
|
||||
|
||||
jsEngine.globalObject().setProperty("painter", wrapper_obj);
|
||||
jsEngine.globalObject().setProperty("width", parent_clip->getWidth());
|
||||
jsEngine.globalObject().setProperty("height", parent_clip->getHeight());
|
||||
jsEngine.globalObject().setProperty("width", parent_clip->media_width());
|
||||
jsEngine.globalObject().setProperty("height", parent_clip->media_height());
|
||||
|
||||
for (int i=0;i<rows.size();i++) {
|
||||
EffectRow* row = rows.at(i);
|
||||
|
||||
Reference in New Issue
Block a user